简体   繁体   English

如何在不使用云形成模板中的互联网访问的情况下将 ec2 连接到 s3

[英]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.我正在学习云形成,所以在这里我想创建基础设施,在 s3 和 ec2 实例之间访问或传输数据,而无需为此数据传输访问互联网,无论我必须为此定义一个 scripr 还是需要建立一个 vpc。 how many ways it will be done.有多少种方法可以完成。

Use VPC end-points or NAT gateways.使用 VPC 端点或 NAT 网关。

Create VPC gateway endpoint in your private subnet where EC2 instacne is present.在存在 EC2 实例的私有子网中创建 VPC 网关终端节点。 Then update the route table.然后更新路由表。 You should be able to reach EC2-> S3 without going via Internet Gateway.您应该能够在不通过 Internet 网关的情况下访问 EC2-> S3。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用云形成将文件从 S3 存储桶复制到 EC2 主目录 - Copy file(s) from S3 bucket to EC2 home using cloud formation Marklogic 使用云形成模板在 EC2 中按比例缩小 - Marklogic Scaling down in EC2 using cloud formation Template 获取使用云形成模板创建的EC2实例信息 - Getting EC2 instance information created using cloud formation template 是否可以在不使用云字体分发的情况下访问 Ec2 实例中的 s3 私有存储桶对象 - Is it possible to access s3 private bucket objects in Ec2 instance without using Cloud font distribution 当使用自动缩放创建ec2时,我们可以在云形成模板中为EC2添加CNAME吗? - Can we add a CNAME for an EC2 in Cloud Formation Template when ec2s are created using auto scaling? 现有 VPC 中 s3 的云形成模板 - cloud formation template for s3 in existing VPC 我们应该如何使用 Cloud Formation 模板更新 S3 存储桶上的默认加密? - How should we Update default encryption on S3 buckets using Cloud Formation Template? 如何获取AWS的所有ec2实例的值,无论是“ AmazonCloudFormation”(使用JSON)还是“非云形成”(在没有JSON文件的情况下创建) - How to fetch values of all ec2 instances of AWS whether “AmazonCloudFormation”(using JSON) or “Non-cloud formation” (created without JSON file) 示例AWS EC2容器服务云形成模板失败 - sample aws ec2 container services cloud formation template fails AWS Cloud Formation模板可创建EC2实例的映像? - AWS Cloud Formation template to create an Image of an EC2 Instance?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM