You need to create a Route53 record automatically in CloudFormation when not running in production during all launches
of a Template. How should you implement this?
A.
Use a Parameter
for environment
, and add a Condition
on the Route53 Resource
in the template to create the record only when environment
is not production
.
B.
Create two templates, one with the Route53 record value and one with a null value for the record. Use the one without it when
deploying to production.
C.
Use a Parameter
for environment
, and add a Condition
on the Route53 Resource
in the template to create the record with a null string when environment
is production
.
D.
Create two templates, one with the Route53 record and one without it. Use the one without it when deploying to production.
Explanation:
The best way to do this is with one template, and a Condition on the resource. Route53 does not allow null strings for
records.
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html
A
Cloud formation provides Condition statement for such scenarios.
A