[英]Is it possible to access s3 private bucket objects in Ec2 instance without using Cloud font distribution
I'm planning to host Angular client side development files in AWS S3 (eg images/,fonts/,js/) as a private bucket (eg not allowing the objects to access public) and a backend Docker java application in an EC2 instance, under a VPC.我计划在 AWS S3 中托管 Angular 客户端开发文件(例如 images/,fonts/,js/)作为私有存储桶(例如不允许对象访问公共)和后端 Docker Z93F725A07423FE1C849F4 应用程序中在 VPC 下。
Once the user is authorized through backend application, it should render the UI pages from S3.一旦用户通过后端应用程序获得授权,它应该从 S3 呈现 UI 页面。
Attach an IAM role to your instance that has permission to retrieve files from your S3 bucket.将一个 IAM 角色附加到您的实例,该角色有权从您的 S3 存储桶中检索文件。
You can create an S3 endpoint for your VPC.您可以为您的 VPC 创建一个 S3 终端节点。
A VPC endpoint enables you to privately connect your VPC to supported AWS services and VPC endpoint services powered by PrivateLink without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection
VPC 终端节点使您能够将您的 VPC 私下连接到受支持的 AWS 服务和由 PrivateLink 提供支持的 VPC 终端节点服务,而无需互联网网关、NAT 设备、VPN 连接或 AWS Direct Connect 连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.