Connection module for Amazon Cloud Formation
New in version 2015.5.0.
This module accepts explicit AWS credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More Information available at:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
If IAM roles are not used you need to specify them either in a pillar or in the minion's config file:
cfn.keyid: GKTADJGHEIQSXMKKRBJ08H
cfn.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
A region may also be specified in the configuration:
cfn.region: us-east-1
boto
Create a CFN stack.
CLI Example:
salt myminion boto_cfn.create mystack template_url='https://s3.amazonaws.com/bucket/template.cft' region=us-east-1
Delete a CFN stack.
CLI Example:
salt myminion boto_cfn.delete mystack region=us-east-1
Describe a stack.
New in version 2015.8.0.
CLI Example:
salt myminion boto_cfn.describe mystack region=us-east-1
Check to see if a stack exists.
CLI Example:
salt myminion boto_cfn.exists mystack region=us-east-1
Check to see if attributes are set on a CFN stack.
CLI Example:
salt myminion boto_cfn.get_template mystack
Update a CFN stack.
New in version 2015.8.0.
CLI Example:
salt myminion boto_cfn.update_stack mystack template_url='https://s3.amazonaws.com/bucket/template.cft' region=us-east-1
Validate cloudformation template
New in version 2015.8.0.
CLI Example:
salt myminion boto_cfn.validate_template mystack-template