Posted by: Pdfprep
Post Date: November 14, 2020
Given the following AWS CloudFormation template:
What is the MOST efficient way to reference the new Amazon S3 bucket from another AWS CloudFormation template?
A . Add an Export declaration to the Outputs section of the original template and use ImportValue in other templates.
B . Add Exported: true to the Contentbucket in the original template and use ImportResource in other templates.
C . Create a custom AWS CloudFormation resource that gets the bucket name from the ContentBucket resource of the first stack.
D . Use Fn::Include to include the existing template in other templates and use the ContentBucket resource directly.
Answer: C
Leave a Reply