cfn-cli
Tools to help run common Cloudformation tasks from the command line
Usage
$ npm install -g @guardian/cfn-cli
$ cfn COMMAND
running command...
$ cfn (-v|--version|version)
@guardian/cfn-cli/1.0.0 darwin-x64 node-v12.16.1
$ cfn --help [COMMAND]
USAGE
$ cfn COMMAND
...
Commands
cfn hello [FILE]
describe the command here
USAGE
$ cfn hello [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ cfn hello
hello world from ./src/hello.ts!
See code: src/commands/hello.ts
cfn help [COMMAND]
display help for cfn
USAGE
$ cfn help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
cfn rotate-instances
describe the command here
USAGE
$ cfn rotate-instances
OPTIONS
-a, --autoscaling=autoscaling (required) Autoscaling group to rotate instances on
-h, --help show CLI help
-p, --profile=profile (required) AWS profile
See code: src/commands/rotate-instances.ts
cfn update-ami [FILE]
Replace the AMI in a stack and rotate the ASG to spin up a new box with it
USAGE
$ cfn update-ami [FILE]
OPTIONS
-a, --ami=ami (required) AMI to replace with
-f, --force
-h, --help show CLI help
-p, --profile=profile (required) AWS profile (value of --profile on the AWS CLI)
-s, --stack-name=stack-name (required) Stack to update with AMI
See code: src/commands/update-ami.ts