Set up an Elastic Beanstalk role with a trust relationship with Elastic Beanstalk and add the following permission policies:
Setup an EC2 role with a trust relationship EC2
Create application the create environment with sample code. You must include the following across the various steps:
You will need settings similar to the following to set up your buckets.
[ { AllowedHeaders: ["*"], AllowedMethods: ["GET", "HEAD", "PUT"], AllowedOrigins: ["*"], ExposeHeaders: [], MaxAgeSeconds: 3000, }, ]
{ "Version": "2012-10-17", "Id": "Policy123456789", "Statement": [{ "Sid": "Statement1", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::<Bucket Name>/*" }] }