What are the appropriate S3 permissions for deploying Elastic Beanstalk using CodeShip? When deploying a new version of tomcat, I get the following errors:
Service: Amazon S3, Message: You do not have permission to execute Action 's3: ListBucket'. Ensure that your S3 policies and your ACLs allow you to complete these steps.
Service: Amazon S3, Message: you do not have permission to execute the 's3: GetObject' or the 's3: ListBucket' action. Verify that your S3 policies and ACLs allow you to complete these steps.
If I give the CodeShip user full access to S3, everything will work, but itβs not perfect. Current S3 permissions for my CodeShip user:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:PutObject", "s3:PutObjectAcl", "s3:GetObject", "s3:GetObjectAcl", "s3:ListBucket", "s3:DeleteObject", "s3:GetBucketPolicy" ], "Resource": [ "arn:aws:s3:::codeshipbucket/*" ] } ] }
My S3 bucket, which I gave CodeShip, is a subfolder under codehipbucket, if that matters.
What are the relevant permissions?
source share