An IPv4-only EC2 application in a Tokyo VPC retrieves a secret in the same account and Region. There is no NAT or internet route, and the SDK must keep its standard regional service DNS name.
VPC DNS resolution and hostnames are enabled; NACLs and local routes permit traffic. The application role has GetSecretValue permission for the secret, which uses the AWS managed key aws/secretsmanager; the required authorization conditions are satisfied.
Provide an HTTPS path through private VPC addresses without treating network connectivity as a replacement for authorization.
Which connectivity design meets these requirements?
Enable Private DNS on a Secrets Manager interface endpoint and allow TCP 443 from the application to the endpoint. Check the network path, DNS and Secrets Manager authorization separately.
Detailed explanation
Under these conditions the standard name does not resolve to the private IPs of that endpoint. Switching to an endpoint-specific name without Private DNS is not part of this scenario.
Resolve the standard service name to endpoint private IPs while satisfying both HTTPS connectivity and the required authorization.
Endpoint policies add endpoint access controls; they do not replace identity-based or resource-based authorization.
Gateway endpoints target S3 and DynamoDB, not Secrets Manager.
Check official documentation
Compare the following points with the official documentation.
Compare official documentation with service com.amazonaws.ap-northeast-1.secretsmanager, Private DNS, VPC DNS attributes, endpoint ENIs, TCP 443 security-group rules, endpoint policy and role permissions. In an authorized environment verify the standard DNS name resolves to endpoint private IPs and GetSecretValue succeeds without NAT. Do not log secret values.
Official references
- Official documentation 1
- Official documentation 2
- Official documentation 3
- Official documentation 4
- Official documentation 5
- Official documentation 6
What to confirm
The standard service name resolves to endpoint private addresses and the authorized application can retrieve the secret. A successful TCP connection alone is not successful authorization, and an endpoint policy does not replace IAM permissions.
Key points
- Interface VPC Endpoint
- AWS PrivateLink
- Secrets Manager
Notes
- Environment: Official AWS documentation review; optional configuration and behavior checks in an authorized test environment.
- Confirm current AWS service behavior in the official documentation.
Foundation review
Resolve the standard name to a private path
An interface endpoint provides ENIs and private IPs. With VPC DNS attributes and Private DNS enabled, the standard regional service name uses that path. Gateway and interface endpoints are different endpoint types.
Satisfy connectivity and authorization separately
Allow application egress and endpoint ingress on TCP 443. An endpoint policy does not replace IAM or secret resource policies; DNS or TCP success alone does not establish GetSecretValue authorization.
Match verification to the stated assumptions
This scenario uses the same account and Region and an AWS managed key. Customer managed KMS keys or cross-account access require separate key and resource authorization checks. Verify DNS, connectivity and API results without logging secret values.