EC2: add a way to set the reverse DNS for an EIP
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
I'm using the CDK to allocate an EIP for use with an EC2 instance and then set a DNS A record for it in Route53. I'd like to be able to set the reverse DNS record for the IP address too.
### Use Case
It's generally good practice to set reverse DNS and is an absolute requirement if SMTP email is going to be sent from the IP address.
### Proposed Solution
I don't know the internals of the CDK well enough to propose a solution, however it is possible to set the reverse DNS for an EIP using the AWS CLI as described here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS. It seems like it's attached to the EIP Association rather than the EIP itself.
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CDK version used
2.51.1 (build 3d30cdb) (Homebrew package)
### Environment details (OS name and version, etc.)
macOS Monterey (12.6.1)
Contributor guide
Research direction
Start with the AWS CLI reverse-DNS documentation linked in the issue, then trace how the CDK models EIP allocation and association. Confirm how reverse DNS belongs to the association and identify the relevant tests. Done means a CDK user can configure reverse DNS for an EIP association with coverage for the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100