通过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

相关推荐
亚林瓜子3 天前
AWS EC2源代码安装valkey命令行客户端
redis·云计算·aws·cli·valkey
大G哥4 天前
实战演练:用 AWS Lambda 和 API Gateway 构建你的第一个 Serverless API
云原生·serverless·云计算·gateway·aws
weixin_307779134 天前
使用FastAPI微服务在AWS EKS中构建上下文增强型AI问答系统
人工智能·python·云计算·fastapi·aws
weixin_307779135 天前
使用FastAPI和Apache Flink构建跨环境数据管道
redis·python·云计算·fastapi·aws
AWS官方合作商5 天前
AWS SNS:解锁高并发消息通知与系统集成的云端利器
服务器·云计算·aws
AWS官方合作商5 天前
如何用AWS Lambda构建无服务器解决方案:实战经验与场景解析
serverless·云计算·aws
qq_390369536 天前
AWS之存储服务
云计算·aws
云攀登者-望正茂6 天前
掌握流量管理:利用 EKS Ingress 和 AWS 负载均衡器控制器
云计算·负载均衡·aws
qq_390369536 天前
AWS之数据分析类产品
大数据·数据分析·aws
TUTO_TUTO7 天前
【AWS+Wordpress】将本地 WordPress 网站部署到AWS
笔记·学习·云计算·aws