Hi,
I’ve created a VPC Endpoint with a resource that looks like this …
resource "aws_vpc_endpoint" "endpoint" {
...
subnet_ids = [ 1, 2 ]
}
This creates a VPC Endpoint that has 3 DNS Entries:
- Points to the endpoint in Subnet 1
- Points to the endpoint in Subnet 2
- Is a multivalue A record that returns the IP for subnet 1 AND subnet 2
I wish to create a DNS CNAME to the record which points to the endpoint in Subnet 1 and 2.
However the resource only returns a list of all three (via the dns_entry attribute).
How can I programatically select the DNS entry I want from this resource?