Terraform module that deploys basic AWS S3 static website
| Name | Version |
|---|---|
| terraform | >= 1.0 |
| aws | >= 4.0 |
| Name | Version |
|---|---|
| aws | >= 4.0 |
| aws.us_east_1 | >= 4.0 |
No modules.
| Name | Type |
|---|---|
| aws_acm_certificate.this | resource |
| aws_acm_certificate_validation.this | resource |
| aws_cloudfront_distribution.this | resource |
| aws_cloudfront_origin_access_identity.this | resource |
| aws_route53_record.cloudfront | resource |
| aws_route53_record.ssl_validation | resource |
| aws_s3_bucket.logging | resource |
| aws_s3_bucket.this | resource |
| aws_s3_bucket_acl.this | resource |
| aws_s3_bucket_lifecycle_configuration.logging | resource |
| aws_s3_bucket_logging.logging | resource |
| aws_s3_bucket_ownership_controls.logging | resource |
| aws_s3_bucket_ownership_controls.this | resource |
| aws_s3_bucket_policy.this | resource |
| aws_s3_bucket_public_access_block.this | resource |
| aws_s3_bucket_server_side_encryption_configuration.logging | resource |
| aws_s3_bucket_versioning.this | resource |
| aws_s3_bucket_website_configuration.this | resource |
| aws_s3_object.this | resource |
| aws_region.current | data source |
| aws_route53_zone.this | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cdn_config | Settings for enabling HTTPS, CloudFront, ACM, and optional custom domain configurations. | object({ |
{ |
no |
| logging_config | Configuration for S3 bucket logging. | object({ |
{ |
no |
| s3_config | Configuration for the S3 bucket, including naming, access controls, and website settings. | object({ |
{ |
no |
| tags | A map of tags to assign to the resources. Tags are useful for identifying and managing resources in AWS. If no tags are provided, an empty map will be used. | map(string) |
{} |
no |
| Name | Description |
|---|---|
| acm_certificate_arn | The ARN of the ACM certificate used for the CloudFront distribution, if HTTPS is enabled. |
| cloudfront_distribution_arn | The ARN of the CloudFront distribution, if CDN is enabled. Null if CDN is disabled. |
| cloudfront_distribution_id | The ID of the CloudFront distribution, if CDN is enabled. Null if CDN is disabled. |
| cloudfront_dns_name | The DNS name for the CloudFront distribution, managed by Route 53, if CDN is enabled. |
| cloudfront_website_url | The website URL served through CloudFront when CDN is enabled. Empty if CDN is disabled. |
| s3_bucket_arn | The ARN of the S3 bucket. |
| s3_bucket_domain_name | The domain name of the S3 bucket (legacy global endpoint). |
| s3_bucket_id | The unique ID of the S3 bucket. |
| s3_bucket_region | The AWS region where the S3 bucket is deployed. |
| s3_bucket_regional_domain_name | The regional domain name of the S3 bucket (recommended for CloudFront origins). |
| s3_logging_bucket | The ID of the S3 bucket used for logging, if logging is enabled. Null if logging is disabled. |
| s3_website_url | The HTTP URL of the S3 static website. Note: HTTPS is not natively supported by S3. |
| website_url | The dynamic website URL, using Route 53 custom domain if CDN is enabled, otherwise S3. |