Skip to content

Commit fe38056

Browse files
mwunderlstealthycoin
authored andcommitted
clean up CloudFormation example file references (aws#2616)
* clean up CloudFormation example file references * fix create-stack output
1 parent 6926eab commit fe38056

2 files changed

Lines changed: 5 additions & 22 deletions

File tree

awscli/examples/cloudformation/create-stack.rst

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,13 @@
22

33
The following ``create-stacks`` command creates a stack with the name ``myteststack`` using the ``sampletemplate.json`` template::
44

5-
aws cloudformation create-stack --stack-name myteststack --template-body file:////home//local//test//sampletemplate.json --parameters ParameterKey=KeyPairName,ParameterValue=TestKey ParameterKey=SubnetIDs,ParameterValue=SubnetID1\\,SubnetID2
5+
aws cloudformation create-stack --stack-name myteststack --template-body file://sampletemplate.json --parameters ParameterKey=KeyPairName,ParameterValue=TestKey ParameterKey=SubnetIDs,ParameterValue=SubnetID1\\,SubnetID2
66

77
Output::
88

9-
[
10-
{
11-
"StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/myteststack/466df9e0-0dff-08e3-8e2f-5088487c4896",
12-
"Description": "AWS CloudFormation Sample Template S3_Bucket: Sample template showing how to create a publicly accessible S3 bucket. **WARNING** This template creates an S3 bucket. You will be billed for the AWS resources used if you create a stack from this template.",
13-
"Tags": [],
14-
"Outputs": [
15-
{
16-
"Description": "Name of S3 bucket to hold website content",
17-
"OutputKey": "BucketName",
18-
"OutputValue": "myteststack-s3bucket-jssofi1zie2w"
19-
}
20-
],
21-
"StackStatusReason": null,
22-
"CreationTime": "2013-08-23T01:02:15.422Z",
23-
"Capabilities": [],
24-
"StackName": "myteststack",
25-
"StackStatus": "CREATE_COMPLETE",
26-
"DisableRollback": false
27-
}
28-
]
9+
{
10+
"StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/myteststack/466df9e0-0dff-08e3-8e2f-5088487c4896"
11+
}
2912

3013
For more information, see `Stacks`_ in the *AWS CloudFormation User Guide*.
3114

awscli/examples/cloudformation/validate-template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The following ``validate-template`` command validates the ``sampletemplate.json`` template::
44

5-
aws cloudformation validate-template --template-body file:////home//local//test//sampletemplate.json
5+
aws cloudformation validate-template --template-body file://sampletemplate.json
66

77
Output::
88

0 commit comments

Comments
 (0)