In this section, we will use CloudFormation to create resources for the lab. CloudFormation stack will create service resources like EC2 instance, SNS Topic, and Lambda Function
The first step we need to download template CloudFormation and Lambda Function
After downloading template CloudFormation and Lambda Function
In the Create bucket interface
In the interface create a folder
In the Upload section
Configure Permissions for S3 bucket
Uncheck *Block all public access
Then configure Bucket policy
In the Edit bucket policy interface
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resources": [
"arn:aws:s3:::Bucket-Name/*"
]
}
]
}