Set up an Elastic Beanstalk role with a trust relationship with Elastic Beanstalk and add the following permission policies:
Set up an EC2 role with a trust relationship EC2
Create application then create environment with sample code. You must include the following across the various steps:
Only use t3.small or higher. Anything less will time out while installing packages.
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>/*"
}
]
}]