An application runs on an Amazon EC2 instance located within a private subnet of a Virtual Private Cloud (VPC). The application must access AWS Systems Manager Parameter Store to retrieve configuration parameters. The security policy dictates that this traffic must not traverse the public internet. Which VPC configuration should be implemented to satisfy this requirement?
- Create an interface VPC endpoint for Systems Manager within the VPC.Answer
- BConfigure a NAT Gateway in a public subnet and route all internet-bound traffic from the private subnet through it.
- CUpdate the IAM role trust policy on the EC2 instance to trust the Systems Manager service principal.
- DMigrate the parameters to AWS Secrets Manager and enable automatic credential rotation.
Answer
Create an interface VPC endpoint for Systems Manager within the VPC.
Creating an interface VPC endpoint for Systems Manager within the VPC is the correct solution. Interface VPC endpoints use AWS PrivateLink, which places elastic network interfaces (ENIs) with private IP addresses in the subnets. Traffic to Systems Manager is routed privately within the AWS network, satisfying the requirement to avoid the public internet.
Step-by-Step Solution
Key Concept
AWS PrivateLink and Interface VPC Endpoints allow private resources inside a VPC to securely connect to supported AWS services without internet traversal.