You created an interface VPC endpoint for Secrets Manager, but `dig secretsmanager.ap-south-1.amazonaws.com` still returns public IPs from the instance.
IntermediateTroubleshootingCloud networking: VPC, firewalls, NAT, VPN and proxies
Answer
Likely causes → Private DNS isn't enabled on the endpoint, the VPC lacks enableDnsSupport/enableDnsHostnames, or the instance uses a custom DNS server that doesn't forward to the VPC resolver (169.254.169.253 / VPC+2), so the private hosted zone the endpoint creates is never consulted.
Diagnose →
aws ec2 describe-vpc-endpoints --vpc-endpoint-ids <vpce> --query 'VpcEndpoints[0].PrivateDnsEnabled'
aws ec2 describe-vpc-attribute --vpc-id <vpc> --attribute enableDnsHostnames
cat /etc/resolv.conf
dig +short secretsmanager.ap-south-1.amazonaws.com @169.254.169.253
Fix → Enable private DNS on the endpoint and the VPC DNS attributes, and forward AWS service domains from custom resolvers to the VPC resolver (or Route 53 Resolver inbound endpoint for on-prem).
Prevent → Make endpoints with private_dns_enabled = true in Terraform, and verify resolution as part of the rollout.
More on Cloud networking: VPC, firewalls, NAT, VPN and proxies
An EC2 instance in a private subnet hangs on `apt-get update` at `Connecting to archive.ubuntu.com`.BeginnerA new EC2 instance in a "public" subnet can't be reached over SSH from the internet; the SG allows port 22 from your IP.BeginnerThe SG allows inbound 443 and the app works from inside the VPC, but internet clients time out. The subnet NACL allows inbound 443.IntermediateA VPC peering connection is `Active`, but instances in the two VPCs can't ping each other.BeginnerALB targets are `unhealthy` with reason `Target.Timeout`, and VPC Flow Logs show `REJECT` from the ALB's IPs to the instances.BeginnerTwo VPCs are attached to a Transit Gateway, but traffic between them fails.Intermediate