Prepare an S3 bucket to store build artifact
In the Create bucket interface
After creating the bucket successfully.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListObjectsInBucket",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::aws-cicd-ec2"
},
{
"Sid": "AllObjectActions",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*Object*",
"Resource": "arn:aws:s3:::aws-cicd-ec2/*"
}
]
}