[英]How do you use a com.amazonaws.s3-global.accesspoint
I've been trying to figure out how to get a Interface based Endpoint for com.amazonaws.s3-global.accesspoint
to work.我一直在努力弄清楚如何让
com.amazonaws.s3-global.accesspoint
的基于接口的端点正常工作。 I was able to successfully connect to my VPC dns seems to resolve to a private ip but I can't figure out how to actually use the interface access point.我能够成功连接到我的 VPC dns 似乎解析为私有 ip 但我不知道如何实际使用接口访问点。
For example, I have a bucket in eu-north-1 and a VPC in ca-central-1 with the interface endpoint configured.例如,我在 eu-north-1 中有一个存储桶,在 ca-central-1 中有一个 VPC,并配置了接口端点。 If I download a file from S3 within the VPC is transits over the inte.net using the NAT Gateway, however if I'm reading the pricing document it's cheaper to use privateLink to transfer between services, and the Global S3 endpoint feels like exactly what I'm looking for.
如果我从 VPC 内的 S3 下载文件是使用 NAT 网关通过 inte.net 传输的,但是如果我正在阅读定价文档,则使用 privateLink 在服务之间传输会更便宜,而且 Global S3 端点感觉就像我在找。
admin@ip-10-101-0-126:~$ dig bucket.vpce-{ID}.accesspoint.s3-global.ca-central-1.vpce.amazonaws.com
{SNIP}
;; QUESTION SECTION:
;bucket.vpce-{ID}.accesspoint.s3-global.ca-central-1.vpce.amazonaws.com. IN A
;; ANSWER SECTION:
bucket.vpce-{ID}.accesspoint.s3-global.ca-central-1.vpce.amazonaws.com. 60 IN A 10.101.1.98
bucket.vpce-{ID}.accesspoint.s3-global.ca-central-1.vpce.amazonaws.com. 60 IN A 10.101.0.96
;; Query time: 1 msec
;; SERVER: 10.101.0.2#53(10.101.0.2)
;; WHEN: Tue Dec 14 08:00:45 EST 2021
;; MSG SIZE rcvd: 153
However when I try and use the endpoint the connection hangs.但是,当我尝试使用端点时,连接挂起。
admin@ip-10-101-0-126:~$ aws s3 --region ca-central-1 --endpoint-url https://bucket.vpce-{ID}.accesspoint.s3-global.ca-central-1.vpce.amazonaws.com ls
As far as I can tell the endpoint and bucket are wide open for my account, but I just can't seem to get it to work.据我所知,端点和存储桶对我的帐户开放,但我似乎无法让它工作。
I have been using this document among others to try and get it to work.我一直在使用这份文件和其他文件来尝试让它发挥作用。
Please consider using interface VPC endpoint.请考虑使用接口 VPC 端点。 It looks like you have configured Multi-Region Access Points and because of which it is not working.
看起来您已经配置了多区域访问点,因此它无法正常工作。 Interface endpoints for Amazon S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#accessing-bucket-and-aps-from-interface-endpoints
Amazon S3 的接口端点: https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#accessing-bucket-and-aps-from-interface-endpoints
Multi-Region Access Points in Amazon S3: Amazon S3 中的多区域访问点:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPoints.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPoints.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.