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.
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?
Please allow reverse DNS for EC2 IPv6asked 3 months ago
Registration of ip6.arpa DNS zonesasked 4 months ago
How to add PTR DNS record for my EIP without AWS-hosted Forward zone?Accepted Answerasked 2 months ago
Can't migrate Classic Elastic IP with Reverse DNS to VPC Elastic IPasked 8 months ago
Elastic IP locked because of reverse DNS, how to release?asked 3 years ago
EIP locked to my account and unable to be releasedasked 6 months ago
Unlock elastic ip reverse dnsasked 2 years ago
IP is blocked. Reverse DNS issueAccepted Answerasked 6 months ago
How can i change the PTR(Reversr DNS) for lightsail static IP ?asked 5 months ago
Cloudformation EIP Reverse DNSasked 3 months ago