In this project, you will deploy a static website to AWS using S3, CloudFront, and IAM.
The files included are:
- index.html - The Index document for the website.
- /img - The background image file for the website.
- /vendor - Bootssrap CSS framework, Font, and JavaScript libraries needed for the website to function.
- /css - CSS files for the website.
- Create S3 bucket
- bucket name:
udacity-website-amagnani
- uncheck: block all public access
-
Upload files and folders: index.html, img, vendor, css
-
Add Policy
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AddPerm",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::udacity-website-amagnani/*"]
}
]
}
- Configure S3 as Host Static Website
- entry page: index.html
- error page: index.html
- Create Distribution vith CloudFront
- select delivery method: web
- set
Origin Domain Name
your S3 bucket - set
Origin Path
empty (equivalent to “/”)