You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,13 @@
30
30
31
31
This module creates an S3 bucket suitable for receiving logs from other `AWS` services such as `S3`, `CloudFront`, and `CloudTrails`.
32
32
33
-
It implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._`Glacier`) and ultimately expire the data altogether.
33
+
**WARNING:** Changes introduced in version 0.27.0 present a **HIGH RISK OF DATA LOSS** when upgrading from an
34
+
earlier version. This warning does not apply to new deployments created with version 0.28.0 or later, but
35
+
if upgrading from an earlier version, please follow the
This module implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._`Glacier`) and ultimately expire the data altogether.
34
40
35
41
It enables server-side default encryption.
36
42
@@ -40,6 +46,11 @@ It blocks public access to the bucket by default.
@@ -244,6 +263,7 @@ Are you using this project or any of our other projects? Consider [leaving a tes
244
263
245
264
Check out these related projects.
246
265
266
+
-[terraform-aws-s3-bucket](https://github.com/cloudposse/terraform-aws-s3-bucket) - Terraform module that creates an S3 bucket with an optional IAM user for external CI/CD systems
247
267
-[terraform-aws-cloudfront-s3-cdn](https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn) - Terraform module to easily provision CloudFront CDN backed by an S3 origin
248
268
-[terraform-aws-s3-website](https://github.com/cloudposse/terraform-aws-s3-website) - Terraform Module for Creating S3 backed Websites and Route53 DNS
249
269
-[terraform-aws-user-data-s3-backend](https://github.com/cloudposse/terraform-aws-user-data-s3-backend) - Terraform Module to Offload User Data to S3
description: Terraform module to easily provision CloudFront CDN backed by an S3
29
32
origin
@@ -45,7 +48,13 @@ related:
45
48
description: |-
46
49
This module creates an S3 bucket suitable for receiving logs from other `AWS` services such as `S3`, `CloudFront`, and `CloudTrails`.
47
50
48
-
It implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._ `Glacier`) and ultimately expire the data altogether.
51
+
**WARNING:** Changes introduced in version 0.27.0 present a **HIGH RISK OF DATA LOSS** when upgrading from an
52
+
earlier version. This warning does not apply to new deployments created with version 0.28.0 or later, but
53
+
if upgrading from an earlier version, please follow the
This module implements a configurable log retention policy, which allows you to efficiently manage logs across different storage classes (_e.g._ `Glacier`) and ultimately expire the data altogether.
Copy file name to clipboardExpand all lines: variables.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ variable "force_destroy" {
26
26
type=bool
27
27
description="(Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable"
28
28
default=false
29
+
validation {
30
+
condition=(var.force_destroy==false)
31
+
# Error messages must be written on a single line.
32
+
# See https://github.com/hashicorp/terraform/issues/24123
33
+
error_message="Because of the HIGH RISK OF DATA LOSS when using this version of this module, force_destroy must be set to false.\n\nWARNING: If you applied a previous version of the module with force_destroy set to true,\nsimply setting it to false here will NOT protect your data. You must set it false and apply\nthe previous version first in order to safeguard your data. See the Wiki entry at\nhttps://github.com/cloudposse/terraform-aws-s3-log-storage/wiki/Upgrading-to-v0.27.0-(POTENTIAL-DATA-LOSS)\nfor more details."
0 commit comments