How should you implement this?

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?

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



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Sadeel Anjum

Sadeel Anjum

A
Cloud formation provides Condition statement for such scenarios.