Command Line Interface for AWS CloudFormation.
awscfncli
is a simple CLI tool that helps you manage AWS CloudFormation stacks.
Features:
- Simple CLI interface.
YAML
stack configuration file.- Stack management.
- ChangeSet management.
- Display and tracking stack events, including nested stack.
- Tracking stack export value and references.
cfn COMMAND SUBCOMMAND STACK_CONFIG [ARGS]...
To view a list of available subcommands, type:
cfn COMMAND --help
To view help of a particular subcommand, type:
cfn COMMAND SUBCOMMAND --help
Supported commands:
template
validate
- Validate templatereflect
- Generate config from existing stack
stack
deploy
- Deploy new stackupdate
- Update stackdescribe
- Describe stack statustail
- Print stack eventsdelete
- Delete stack
changeset
create
- Create new ChangeSetlist
- List ChangeSet of stackdescribe
- Describe changesexecute
- Update stack using ChangeSet
STACK_CONFIG
is a simple YAML
file describes stack deploy parameters:
Stack:
Region: us-east-1
StackName: SampleIAMUsersGroupsAndPolicies
TemplateURL: https://s3.amazonaws.com/cloudformation-templates-us-east-1/IAM_Users_Groups_and_Policies.template
Capabilities: [CAPABILITY_IAM]
Parameters:
Password: bob180180180
Tags:
project: Bob
pip install awscfncli
Check boto3
document.