-
Notifications
You must be signed in to change notification settings - Fork 20
ManagingCloudFormationStacks
Brett Weaver edited this page Dec 12, 2012
·
4 revisions
Simple Deploy can create, destroy, clone, update and read information about Cloud Formation stacks.
Assuming we have the following Cloud Formation template save to ~/sqs.json:
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "SQS Queue",
"Parameters": {
"Description": {
"Type": "String",
"Description": "What is the purpose of this queue"
}
},
"Resources" : {
"Queue" : {
"Type" : "AWS::SQS::Queue"
}
},
"Outputs" : {
"QueueURL" : {
"Description" : "URL of newly created SQS Queue",
"Value" : { "Ref" : "Queue" }
}
}
}
Assuming you have setup credentials with a default account, Simple Deploy can be used to create the following stack:
# simple_deploy create -e default -n queue -t ~/sqs.json -a Description='M
y brand new SQS queue.'
2012-12-12 15:25:31 -0800 INFO : Read Description=My brand new SQS queue.
2012-12-12 15:25:32 -0800 INFO : Creating Cloud Formation stack queue.
2012-12-12 15:25:33 -0800 INFO : Cloud Formation stack creation completed.
This will create a stack named queue passing in the parameter Description using the ~/sqs.json template in the default environment.
We can view lots of information about this stack including:
- attributes
- outputs
- parameters
- resources
- status
- instances
- template
For example, to view the outputs of this template we can run the following:
# simple_deploy outputs -e default -n queue
QueueURL: https://sqs.us-west-1.amazonaws.com/660217303193/queue-Queue-17Z22UR72TQJF