|
1 | 1 |
|
2 | 2 | <!-- markdownlint-disable -->
|
3 |
| -# terraform-aws-s3-website [](https://github.com/cloudposse/terraform-aws-s3-website/releases/latest) [](https://slack.cloudposse.com) |
| 3 | +# ~~terraform-aws-s3-website~~ OBSOLETE |
| 4 | + |
| 5 | + [](https://github.com/cloudposse/terraform-aws-s3-website/releases/latest) [](https://slack.cloudposse.com) |
4 | 6 | <!-- markdownlint-restore -->
|
5 | 7 |
|
6 | 8 | [![README Header][readme_header_img]][readme_header_link]
|
|
28 | 30 |
|
29 | 31 | -->
|
30 | 32 |
|
| 33 | + |
| 34 | +## Deprecated |
| 35 | + |
| 36 | +**As of July, 2023 this module is deprecated.** `terraform-aws-s3-website` offers little value beyond [ |
| 37 | +the `terraform-aws-s3-bucket` module](https://github.com/cloudposse/terraform-aws-s3-bucket), |
| 38 | +so Cloud Posse is phasing out support for this project. Users are advised to migrate to |
| 39 | +[terraform-aws-s3-bucket](https://github.com/cloudposse/terraform-aws-s3-bucket) to manage the S3 bucket |
| 40 | +(including logging) and [terraform-aws-route53-alias](https://github.com/cloudposse/terraform-aws-route53-alias) |
| 41 | +to register the website hostname in Route53. Feature requests should be directed to those modules. |
| 42 | + |
31 | 43 | Terraform module to provision S3-backed Websites.
|
32 | 44 | **IMPORTANT:** This module provisions a globally accessible S3 bucket for unauthenticated users because it is designed for hosting public static websites. Normally, AWS recommends that S3 buckets should not publicly accessible in order to protect S3 data from unauthorized users.
|
33 | 45 |
|
@@ -89,10 +101,6 @@ We highly recommend that in your code you pin the version to the exact version y
|
89 | 101 | using so that your infrastructure remains stable, and update versions in a
|
90 | 102 | systematic way so that they do not catch you by surprise.
|
91 | 103 |
|
92 |
| -Also, because of a bug in the Terraform registry ([hashicorp/terraform#21417](https://github.com/hashicorp/terraform/issues/21417)), |
93 |
| -the registry shows many of our inputs as required when in fact they are optional. |
94 |
| -The table below correctly indicates which inputs are required. |
95 |
| - |
96 | 104 |
|
97 | 105 | #### Create s3 website bucket
|
98 | 106 |
|
@@ -153,31 +161,33 @@ Available targets:
|
153 | 161 |
|
154 | 162 | | Name | Version |
|
155 | 163 | |------|---------|
|
156 |
| -| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 | |
157 |
| -| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0, < 4.0.0 | |
| 164 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 | |
| 165 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.9 | |
158 | 166 | | <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.2 |
|
159 | 167 |
|
160 | 168 | ## Providers
|
161 | 169 |
|
162 | 170 | | Name | Version |
|
163 | 171 | |------|---------|
|
164 |
| -| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0, < 4.0.0 | |
| 172 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.9 | |
165 | 173 |
|
166 | 174 | ## Modules
|
167 | 175 |
|
168 | 176 | | Name | Source | Version |
|
169 | 177 | |------|--------|---------|
|
170 | 178 | | <a name="module_default_label"></a> [default\_label](#module\_default\_label) | cloudposse/label/null | 0.25.0 |
|
171 | 179 | | <a name="module_dns"></a> [dns](#module\_dns) | cloudposse/route53-alias/aws | 0.13.0 |
|
172 |
| -| <a name="module_logs"></a> [logs](#module\_logs) | cloudposse/s3-log-storage/aws | 0.20.0 | |
| 180 | +| <a name="module_logs"></a> [logs](#module\_logs) | cloudposse/s3-log-storage/aws | 1.4.2 | |
173 | 181 | | <a name="module_this"></a> [this](#module\_this) | cloudposse/label/null | 0.25.0 |
|
174 | 182 |
|
175 | 183 | ## Resources
|
176 | 184 |
|
177 | 185 | | Name | Type |
|
178 | 186 | |------|------|
|
179 | 187 | | [aws_s3_bucket.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource |
|
| 188 | +| [aws_s3_bucket_ownership_controls.s3_bucket_ownership_controls](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls) | resource | |
180 | 189 | | [aws_s3_bucket_policy.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) | resource |
|
| 190 | +| [aws_s3_bucket_public_access_block.s3_allow_public_access](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource | |
181 | 191 | | [aws_iam_policy_document.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
|
182 | 192 | | [aws_iam_policy_document.deployment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
|
183 | 193 | | [aws_iam_policy_document.replication](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
|
@@ -440,11 +450,11 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
|
440 | 450 | [readme_footer_link]: https://cloudposse.com/readme/footer/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-s3-website&utm_content=readme_footer_link
|
441 | 451 | [readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img
|
442 | 452 | [readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-s3-website&utm_content=readme_commercial_support_link
|
443 |
| - [share_twitter]: https://twitter.com/intent/tweet/?text=terraform-aws-s3-website&url=https://github.com/cloudposse/terraform-aws-s3-website |
444 |
| - [share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=terraform-aws-s3-website&url=https://github.com/cloudposse/terraform-aws-s3-website |
| 453 | + [share_twitter]: https://twitter.com/intent/tweet/?text=~~terraform-aws-s3-website~~+OBSOLETE&url=https://github.com/cloudposse/terraform-aws-s3-website |
| 454 | + [share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=~~terraform-aws-s3-website~~+OBSOLETE&url=https://github.com/cloudposse/terraform-aws-s3-website |
445 | 455 | [share_reddit]: https://reddit.com/submit/?url=https://github.com/cloudposse/terraform-aws-s3-website
|
446 | 456 | [share_facebook]: https://facebook.com/sharer/sharer.php?u=https://github.com/cloudposse/terraform-aws-s3-website
|
447 | 457 | [share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-s3-website
|
448 |
| - [share_email]: mailto:?subject=terraform-aws-s3-website&body=https://github.com/cloudposse/terraform-aws-s3-website |
| 458 | + [share_email]: mailto:?subject=~~terraform-aws-s3-website~~+OBSOLETE&body=https://github.com/cloudposse/terraform-aws-s3-website |
449 | 459 | [beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-s3-website?pixel&cs=github&cm=readme&an=terraform-aws-s3-website
|
450 | 460 | <!-- markdownlint-restore -->
|
0 commit comments