Requirements

Name Version
terraform >= 1.0.6
aws 4.51.0

Providers

Name Version
aws 4.51.0

Modules

No modules.

Resources

Name Type
aws_acm_certificate.ssl_certificate resource
aws_acm_certificate_validation.cert_validation resource
aws_cloudfront_distribution.main resource
aws_route53_record.cert_validation resource
aws_route53_record.root-a resource
aws_route53_record.www-cname resource
aws_route53_zone.main resource
aws_s3_bucket.main resource
aws_s3_bucket_acl.main_acl resource
aws_s3_bucket_policy.main_policy resource
aws_s3_bucket_website_configuration.main_website_configuration resource
aws_iam_policy_document.bucket_policy data source

Inputs

Name Description Type Default Required
bucket_name The Fully Qualified domain name should be the bucket name string "" no
domain simple website where route53 hosted zone and bucket name are same. Naked domain string n/a yes
route53_domain Route53 hostedzone name string "" no

Outputs

Name Description
cloudfront_domain Cloudfront domain
cloudfront_hosted_zone Cloud front hosted zone
main_bucket Bucket id of main bucket
s3_hosted_zone_id Hosted zone id of main bucket