通过AWS Endpoints从内网访问S3

AWS S3作为非结构化数据的存储,经常会有内网中的app调用的需求。S3默认是走公网访问的,如果内网app通过公网地址访问S3并获取数据会消耗公网带宽费用。如下图所示:

AWS 提供了一种叫做endpoints的资源,这种资源可以后挂S3服务,使得内网服务可以不出公网访问S3.

VPC endpoints for Amazon S3 simplify access to S3 from within a VPC by providing configurable and highly reliable secure connections to S3 that do not require an internet gateway or Network Address Translation (NAT) device. When you create a S3 VPC endpoint, you can attach an endpoint policy to it that controls access to Amazon S3.

创建endpoints时,如果是S3,需选择gateway类型。

There are three types of VPC endpoints -- Interface endpoints, Gateway Load Balancer endpoints, and Gateway endpoints. Interface endpoints and Gateway Load Balancer endpoints are powered by AWS PrivateLink, and use an Elastic Network Interface (ENI) as an entry point for traffic destined to the service. Interface endpoints are typically accessed using the public or private DNS name associated with the service, while Gateway endpoints and Gateway Load Balancer endpoints serve as a target for a route in your route table for traffic destined for the service.

创建完成后(按需配置VPC,route table等),即可使用https://{{bucket-name}}.s3.ap-southeast-1.amazonaws.com通过aws内网(骨干网)访问S3了。

图片参考:https://www.youtube.com/watch?v=jo3X_aay4Vs

相关推荐
Elastic 中国社区官方博客19 小时前
Elastic 获得 AWS 教育 ISV 合作伙伴资质,进一步增强教育解决方案产品组合
大数据·人工智能·elasticsearch·搜索引擎·云计算·全文检索·aws
AWS官方合作商1 天前
Amazon Augmented AI:人类智慧与AI协作,破解机器学习审核难题
人工智能·机器学习·aws
亚林瓜子2 天前
AWS 成本异常检测IAM策略
云计算·aws·iam·cost
王道长服务器 | AWS2 天前
CloudFront 加速详解:AWS CDN 怎么用?
服务器·云计算·aws
在云上(oncloudai)2 天前
AWS DocumentDB vs MongoDB:数据库的技术抉择
数据库·mongodb·aws
亚林瓜子2 天前
Python Flask中启用AWS Secrets Manager+AWS Parameter Store配置中心
python·flask·ssm·web·aws·config·secret
王道长服务器 | AWS3 天前
AWS VPC 网络详解:理解云上专属内网的关键要素
网络·云计算·aws
王道长服务器 | AWS3 天前
EC2 实例详解:AWS 的云服务器怎么玩?☁️
服务器·云计算·aws
AWS官方合作商3 天前
AWS App Mesh实战:构建可观测、安全的微服务通信解决方案
微服务·云原生·架构·aws
程序员Bears4 天前
云部署实战:基于AWS EC2/Aliyun ECS与GitHub Actions的CI/CD全流程指南
ci/cd·github·aws