简体   繁体   中英

how to connect ec2 to s3 without using internet access in cloud formation template

I am learning cloud formation so here i want to create infrastructure where access or transfer data between s3 and ec2 instance with out having a internet access for this data transfers,whether i have to define a scripr for this or need to estabish a vpc. how many ways it will be done.

Use VPC end-points or NAT gateways.

Create VPC gateway endpoint in your private subnet where EC2 instacne is present. Then update the route table. You should be able to reach EC2-> S3 without going via Internet Gateway.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM