Closed israel-anaya closed 11 months ago
I think this module is missing this config: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance.html#private-dns-name-options
Yes would be nice to support it, right now the plan shows a diff
- private_dns_name_options {
- enable_resource_name_dns_a_record = false -> null
- enable_resource_name_dns_aaaa_record = false -> null
- hostname_type = "ip-name" -> null
}
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
When creating a new EC2 instance via the web console you have the option to choose the hostname type for the new instance - options are either IP name by default (ip-172-26-0-1.eu-west-3.compute.internal) or Resource name (i-0f0ccc1aa12371b73.eu-west-3.compute.internal). It should be possible to set this option in terraform.
Potential Terraform Configuration
module "ec2_instance" { source = "terraform-aws-modules/ec2-instance/aws" ... private_dns_name_options { hostname_type = "resource-name" | "ip-name" } ... }