@@ -85,27 +85,38 @@ module "static_site_hosting" {
85
85
| [ aws_acm_certificate.cloudfront_static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate ) | resource |
86
86
| [ aws_acm_certificate_validation.cloudfront_static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate_validation ) | resource |
87
87
| [ aws_cloudfront_cache_policy.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_cache_policy ) | resource |
88
+ | [ aws_cloudfront_distribution.site_www_redirect] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution ) | resource |
88
89
| [ aws_cloudfront_distribution.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution ) | resource |
89
90
| [ aws_cloudfront_origin_access_control.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_origin_access_control ) | resource |
90
91
| [ aws_cloudfront_origin_request_policy.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_origin_request_policy ) | resource |
91
92
| [ aws_route53_record.cloudfront_static_site_tls_certificate_dns_validation] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record ) | resource |
92
93
| [ aws_route53_record.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record ) | resource |
94
+ | [ aws_route53_record.static_site_www_redirect] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record ) | resource |
93
95
| [ aws_s3_bucket.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket ) | resource |
96
+ | [ aws_s3_bucket.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket ) | resource |
94
97
| [ aws_s3_bucket.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket ) | resource |
95
98
| [ aws_s3_bucket_acl.cloudfront_logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl ) | resource |
96
99
| [ aws_s3_bucket_acl.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl ) | resource |
100
+ | [ aws_s3_bucket_acl.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl ) | resource |
97
101
| [ aws_s3_bucket_acl.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl ) | resource |
102
+ | [ aws_s3_bucket_logging.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_logging ) | resource |
98
103
| [ aws_s3_bucket_logging.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_logging ) | resource |
99
104
| [ aws_s3_bucket_ownership_controls.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls ) | resource |
105
+ | [ aws_s3_bucket_ownership_controls.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls ) | resource |
100
106
| [ aws_s3_bucket_ownership_controls.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls ) | resource |
101
107
| [ aws_s3_bucket_policy.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy ) | resource |
108
+ | [ aws_s3_bucket_policy.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy ) | resource |
102
109
| [ aws_s3_bucket_policy.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy ) | resource |
103
110
| [ aws_s3_bucket_public_access_block.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block ) | resource |
111
+ | [ aws_s3_bucket_public_access_block.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block ) | resource |
104
112
| [ aws_s3_bucket_public_access_block.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block ) | resource |
105
113
| [ aws_s3_bucket_server_side_encryption_configuration.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration ) | resource |
114
+ | [ aws_s3_bucket_server_side_encryption_configuration.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration ) | resource |
106
115
| [ aws_s3_bucket_server_side_encryption_configuration.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration ) | resource |
107
116
| [ aws_s3_bucket_versioning.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
117
+ | [ aws_s3_bucket_versioning.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
108
118
| [ aws_s3_bucket_versioning.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
119
+ | [ aws_s3_bucket_website_configuration.site_redirect_to_www] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration ) | resource |
109
120
| [ aws_s3_bucket_website_configuration.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration ) | resource |
110
121
| [ aws_s3_object.static_site_index] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object ) | resource |
111
122
| [ aws_caller_identity.current] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity ) | data source |
@@ -133,6 +144,7 @@ module "static_site_hosting" {
133
144
| <a name =" input_s3_logs_force_destroy " ></a > [ s3\_ logs\_ force\_ destroy] ( #input\_ s3\_ logs\_ force\_ destroy ) | Force destroy Logs S3 bucket | ` bool ` | ` false ` | no |
134
145
| <a name =" input_s3_static_site_force_destroy " ></a > [ s3\_ static\_ site\_ force\_ destroy] ( #input\_ s3\_ static\_ site\_ force\_ destroy ) | Force destroy Static Site S3 bucket | ` bool ` | ` false ` | no |
135
146
| <a name =" input_site_host_name " ></a > [ site\_ host\_ name] ( #input\_ site\_ host\_ name ) | Site Host Name. This will be used for Certificate generation and CloudFront aliases | ` string ` | ` "" ` | no |
147
+ | <a name =" input_site_redirect_to_www " ></a > [ site\_ redirect\_ to\_ www] ( #input\_ site\_ redirect\_ to\_ www ) | Conditionally redirect to www .<site\_ host\_ name> | ` bool ` | ` false ` | no |
136
148
| <a name =" input_static_site_s3_acl " ></a > [ static\_ site\_ s3\_ acl] ( #input\_ static\_ site\_ s3\_ acl ) | Static Site S3 ACL | ` string ` | ` "private" ` | no |
137
149
| <a name =" input_static_site_s3_enable_encryption " ></a > [ static\_ site\_ s3\_ enable\_ encryption] ( #input\_ static\_ site\_ s3\_ enable\_ encryption ) | Static Site S3 Enable Encyption | ` bool ` | ` true ` | no |
138
150
0 commit comments