Skip to content

Commit

Permalink
reverted prevent destroy variables as not compatible with terraform -…
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Crimes committed Jul 16, 2019
1 parent 65d4a32 commit 54ceddf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/s3bucket/s3bucket_kms_encryption/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_s3_bucket" "environment" {
}

lifecycle {
prevent_destroy = "${var.prevent_destroy}"
prevent_destroy = false
}

server_side_encryption_configuration {
Expand Down
4 changes: 0 additions & 4 deletions modules/s3bucket/s3bucket_kms_encryption/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ variable "sse_algorithm" {
variable "versioning" {
default = false
}

variable "prevent_destroy" {
default = false
}
2 changes: 1 addition & 1 deletion modules/s3bucket/s3bucket_logging_encryption/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_s3_bucket" "environment" {
}

lifecycle {
prevent_destroy = "${var.prevent_destroy}"
prevent_destroy = false
}

logging {
Expand Down
4 changes: 0 additions & 4 deletions modules/s3bucket/s3bucket_logging_encryption/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ variable "sse_algorithm" {

variable "versioning" {
default = false
}

variable "prevent_destroy" {
default = false
}
2 changes: 1 addition & 1 deletion modules/s3bucket/s3bucket_without_policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_s3_bucket" "environment" {
}

lifecycle {
prevent_destroy = "${var.prevent_destroy}"
prevent_destroy = false
}

server_side_encryption_configuration {
Expand Down
4 changes: 0 additions & 4 deletions modules/s3bucket/s3bucket_without_policy/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ variable "tags" {
variable "versioning" {
default = true
}

variable "prevent_destroy" {
default = false
}

0 comments on commit 54ceddf

Please sign in to comment.