class Bolts::CLI::Help
Public Class Methods
ecs_exec()
click to toggle source
# File lib/bolts/cli/help.rb, line 36 def ecs_exec <<-EOL Ssh into an ECS container instance, finds a running docker container associated with the service and docker exec's into it. Examples: $ bolts ecs-exec my-service --cluster my-cluster EOL end
ecs_run()
click to toggle source
# File lib/bolts/cli/help.rb, line 47 def ecs_run <<-EOL Ssh into an ECS container instance and runs a docker container using the same environment and image as the specified running service. Examples: $ bolts ecs-run my-service --cluster my-cluster $ bolts ecs-run my-service --cluster my-cluster # If there are flags in the command that you want to pass down to the docker run command you will need to put the command in single quotes. This is due to the way Thor (what this tool uses) parses options. $ bolts ecs-run --cluster prod-hi hi-web-prod 'rake -T' EOL end
ssh()
click to toggle source
# File lib/bolts/cli/help.rb, line 17 def ssh <<-EOL Ssh quicky into an EC2 instance using an identifier. The identifier can be many different things: * EC2 instance id. Example: i-067c5e3f026c1e801 * ECS service. Example: my-ecs-service * ECS container instance id. Example: 7fbc8c75-4675-4d39-a5a4-0395ff8cd474 * ECS task id. Example: 1ed12abd-645c-4a05-9acf-739b9d790170 Examples: $ bolts ssh my-ecs-service --cluster my-cluster # cluster is required or ~/.bolts/settings.yml $ bolts ssh i-067c5e3f026c1e801 $ bolts ssh 7fbc8c75-4675-4d39-a5a4-0395ff8cd474 $ bolts ssh 1ed12abd-645c-4a05-9acf-739b9d790170 EOL end