intuit / simple_deploy

Maintenance Mode - Simple Deploy is an opinionated CLI tool for managing AWS Cloud Formation Stacks.
MIT License
64 stars 22 forks source link

The Jimmy Flag #218

Closed weavenet closed 10 years ago

weavenet commented 10 years ago

Added an --external flag to execute, deploy and instances commands.

thbishop commented 10 years ago

@brettweavnet looks good. what is the actual command line as we already have -e for environment? --external?

weavenet commented 10 years ago

@thbishop it shows up as -x, I could either leave it, or remove the short name:

# simple_deploy execute -h

Execute command on given stack(s).

simple_deploy execute -n STACK_NAME -n STACK_NAME -e ENVIRONMENT -c "COMMAND"

Using Internal / External IP for SSH:

simple_deploy defaults to using the public IP when ssh'ng to stacks in classic, or the private IP when
in a VPC.

The internal or external flag forces simple_deploy to use the given IP address.

simple_deploy execute -n STACK_NAME -n STACK_NAME -e ENVIRONMENT -i
             --help, -h:   Display Help
   --attributes, -a <s>:   = seperated attribute and it's value
      --command, -c <s>:   Command to execute.
  --environment, -e <s>:   Set the target environment
         --external, -x:   Use external IP for ssh commands
         --internal, -i:   Use internal IP for ssh commands
    --log-level, -l <s>:   Log level:  debug, info, warn, error (default: info)
         --name, -n <s>:   Stack name(s) of stack to deploy
             --sudo, -s:   Execute command with sudo
          --version, -v:   Print version and exit
thbishop commented 10 years ago

@brettweavnet i think i'm good with that. -x isn't commonly used for something else. good to merge?

weavenet commented 10 years ago

@thbishop yup, good 2 merge