QuestionQ2

Deployment, Provisioning, and Automation

A CloudOps engineer is reviewing the following AWS CloudFormation template:

Question Image

Why does creation of the stack fail?

Explanation

PrivateDnsName is not a supported configurable property of AWS::EC2::Instance; it is a read-only resource attribute that can be retrieved with Fn::GetAtt. The supported instance setting for hostname behavior is PrivateDnsNameOptions, so specifying PrivateDnsName in Properties causes CloudFormation validation to fail.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!