An organization's Amazon EC2 instances located in a private subnet are experiencing connection timeouts when trying to access Amazon S3. A Gateway VPC Endpoint for Amazon S3 has been deployed and linked to the private subnet's route table. The instances use a security group that permits all egress traffic. The subnet's custom Network ACL has an egress rule allowing port traffic to the S3 prefix list, but all custom ingress rules have been removed, leaving only the default deny rule. What configuration change is necessary to restore access to Amazon S3?
- AUpdate the route table of the private subnet to direct traffic destined for to an Internet Gateway.
- BDissociate the Gateway VPC Endpoint from the private subnet's route table and associate it with the public subnet's route table.
- Configure an inbound rule in the custom Network ACL to allow traffic from the Amazon S3 prefix list on ephemeral ports -.Cevap
- DRoute the S3 traffic through a NAT Gateway located in a different Availability Zone to bypass local subnet routing restrictions.
Cevap
Configure an inbound rule in the custom Network ACL to allow traffic from the Amazon S3 prefix list on ephemeral ports -.
Network ACLs are stateless, meaning both inbound and outbound traffic must be explicitly permitted. While the security group automatically tracks states, the custom Network ACL requires a return rule. S3 response traffic uses ephemeral ports -, so adding an inbound rule in the Network ACL for this range resolves the connection timeout.
Adım Adım Çözüm
Anahtar Kavram
Stateless nature of Network Access Control Lists (NACLs) and ephemeral port requirements for return traffic
Tahmini Süre:2m 30s