You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,9 +289,9 @@ Outputs:
289
289
For AWS CLI commands, please specify the region using the --region option.
290
290
291
291
#### Note:
292
-
Every command needs to output the desired value into the reserved file "/command-output.txt" like the following example.
292
+
Every command needs to output the desired value into the reserved file "/command-output.txt" like the following example. The value written to the file must be a single word value without quotation marks like `vpc-0a12ab123abc9876` as they are intended to be used inside the CloudFormation template using `Fn::GetAtt`.
293
293
294
-
`aws s3 ls > /command-output.txt`
294
+
`aws ec2 describe-vpcs --query Vpcs[0].VpcId --output text > /command-output.txt`
295
295
296
296
#### Note:
297
297
The command is run on the latest Amazon Linux 2 AMI in your region.
@@ -383,9 +383,9 @@ Outputs:
383
383
384
384
# Return Values
385
385
386
-
### Ref
386
+
### Fn::GetAtt
387
387
388
-
Users can reference the output of the command outputted to /command-output.txt using Fn::GetAtt like in the following syntax.
388
+
Users can reference the output of the command written to `/command-output.txt` using `Fn::GetAtt` like in the following syntax.
0 commit comments