Please check the following details through this links below
Text
https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html
Vedio
https://www.youtube.com/watch?v=cMJ7cPk3tlc
some tips from here:
medium.com/@yashpatel007/how-to-connect-your-amazon-ec2-instance-with-a-domain-name-80ad8959078
Change the resource eg:sriraha-00707 replacement with your bucket name or domain name in S3
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicAccesstoObjects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::sriraha-0707/*"
}
]
}