S3 static site infrastructure
Your task
Write Terraform for an S3 bucket that stores static assets and a CloudFront distribution that uses the bucket as its origin. What to do: complete main.tf. Note: use ap-northeast-2, and take the bucket name from a variable.
Ground rules
- •Write Terraform HCL.
- •Do not apply anything to the cloud.
Not required
- •Domains, certificates, Route53.
- •Uploading files.
▶About this challenge
Configure storage and delivery resources for a static site using infrastructure code.
Infrastructure code should make not only resources but also the connections between their values explicit.
- What does this practice?
- It practices writing the storage and delivery path needed for a static site.
- Does it apply to a real cloud account?
- No. Local tests only check the shape of the configuration.