xpj01 commented on issue #1501: URL: https://github.com/apache/iceberg-python/issues/1501#issuecomment-2594573841
I've found the root cause that the VPC was setup the s3 endpoint policy and put few buckets in it. I change the policy to include the bucket I used. The issue got resolved. That's why the account works well in my local but failed on EC2 instance. Put the solution for reference. _You need to modify the VPC endpoint policy for S3. Here's the policy to add to your VPC endpoint:_ ``` { "Version": "2012-10-17", "Statement": [ { "Sid": "AllowAll", "Effect": "Allow", "Principal": "*", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::<bucket>", "arn:aws:s3:::<bucket>/*" ] } ] } ``` Steps to apply: Go to AWS Console → VPC → Endpoints Select your S3 endpoint Edit the policy Paste this policy This will allow all S3 actions through the VPC endpoint for your bucket. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org