Cloudformation EIP Reverse DNS

0

Hello,

Is it possible to assign a reverse DNS name to an AWS::EC2::EIP resource via CloudFormation?

Thanks.

2回答
2

I don't believe this is possible via the AWS::EC2::EIP resource type. You could create a custom resource (or a registry resource) to call the ModifyAddressAttribute API (e.g. via boto3) which could update the EIP configuration after it's created.

However, there's a requirement that the reverse DNS entry has a matching forward DNS, so you would also need to create a suitable DNS entry (either in Route53, or in your own DNS system which again would be via a custom resource) before CloudFormation creates/updates the reverse DNS. You can use the DependsOn attribute if necessary for that.

profile pictureAWS
エキスパート
James_S
回答済み 2年前
0

Thanks for the response, I'll look into creating a custom resource. Longer term, is it possible to create a feature request for this functionality within Cloudformation itself?

dev199
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ