- Newest
- Most votes
- Most comments
ensure is it setup correctly
There are 2 methos exists
1.Check with CloudTrail
Execute the API and check it via CloudTrail. Check CloudTrail logs, vpcEndpointId field exists.
$ aws s3 ls s3://YOUR-BUCKET/
Check the CloudTrail log and if the vpcEndpointId field exists, success.
{
...
"eventSource": "s3.amazonaws.com",.
"eventName": "ListBuckets",.
...
"sourceIPAddress": "10.30.0.160", ...
...
"vpcEndpointId": "vpce-0554e2f536c2ae78c", ...
...
}
2.Executing command from private subnet
As a way to check for private subnet limitation, it is successful if the API can be executed even though it cannot communicate with the Internet.
Hi. This document will help you.
[How can I improve the transfer speeds for copying data between my S3 bucket and EC2 instance?]
https://repost.aws/knowledge-center/s3-transfer-data-bucket-instance
In this case, especially these instructions will work.
- Use enhanced networking on the EC2 instance
- Use a VPC endpoint for Amazon S3
- Upgrade your EC2 instance type
I have setup VPC endpoint but ensure is it setup correctly any expert can help to see please?
In addition to takahash you can follow these articles for optimization
https://repost.aws/knowledge-center/s3-transfer-data-bucket-instance https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance.html
Thank You exeprt Sedat_Salman
Maybe based on the below image:
Do you think I have setup my VPC Endpoint correctly?
Yes.It seems well.
Thanks You Expert :D
Your welcome.If you don't mind, I would like you to "Accept Answer" to my first answer for the sake of the community and those who are troubled by the same event.
Yes Exeprt. I have accept the answer on this post. Once again thanks.
Thanks! :D
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
If VPC Endpoint is not working, check here
https://repost.aws/knowledge-center/connect-s3-vpc-endpoint
Thanks for the advice but may I check run this "aws s3 ls s3://YOUR-BUCKET/" on my EC2 or?
Yes. On your EC2.
This is what I get:
ubuntu@ip-17*-3*-2*-2*:~$ aws s3 ls s3://fr**-t***-fi***********-f********-s3/ PRE Ba******/ PRE fr**-t***-fi***********-f********-s3/
is this counted as going via VPC Endpoint?
Ifyou are executing command from EC2 private subnet,its going via Endpoint.