I recently added VPC Endpoints to my CloudFormation stack. I then deleted my stack and tried to recreate it.
When I tried to recreate it, I got the following error:
private-dns-enabled cannot be set because there is already a conflicting DNS domain for secretsmanager.us-east-2.amazonaws.com in the VPC vpc-63170e0b (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameter; Request ID: b7d28d81-c2c0-4f44-9642-f22171cf513d)
I suspect the error is here because the VPC's private DNS still has an entry from the last time the stack was created.
Is there a way to manually remove entries from the private DNS of the VPC?