Skip to content

Commit

Permalink
feat(vault): remove configurable vault s3 bucket versioning (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-ng authored Mar 7, 2024
1 parent 91448eb commit 65d46f8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion modules/vault-cluster/INOUT.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
| enable\_auto\_unseal | (Vault Enterprise only) Emable auto unseal of the Vault cluster | `bool` | `false` | no |
| enable\_dynamo\_backend | Whether to use a DynamoDB storage backend instead of Consul | `bool` | `false` | no |
| enable\_s3\_backend | Whether to configure an S3 storage backend in addition to Consul. | `bool` | `false` | no |
| enable\_s3\_bucket\_versioning | Whether to enable bucket versioning for the S3 bucket. | `bool` | `false` | no |
| enabled\_metrics | List of autoscaling group metrics to enable. | `list(string)` | `[]` | no |
| force\_destroy\_s3\_bucket | If 'configure\_s3\_backend' is enabled and you set this to true, when you run terraform destroy, this tells Terraform to delete all the objects in the S3 bucket used for backend storage. You should NOT set this to true in production or you risk losing all your data! This property is only here so automated tests of this module can clean up after themselves. Only used if 'enable\_s3\_backend' is set to true. | `bool` | `false` | no |
| health\_check\_grace\_period | Time, in seconds, after instance comes into service before checking health. | `number` | `300` | no |
Expand Down
4 changes: 0 additions & 4 deletions modules/vault-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,6 @@ resource "aws_s3_bucket" "vault_storage" {
var.s3_bucket_tags,
)

versioning {
enabled = var.enable_s3_bucket_versioning
}

# aws_launch_configuration.launch_configuration in this module sets create_before_destroy to true, which means
# everything it depends on, including this resource, must set it as well, or you'll get cyclic dependency errors
# when you try to do a terraform destroy.
Expand Down
5 changes: 0 additions & 5 deletions modules/vault-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ variable "s3_bucket_tags" {
default = {}
}

variable "enable_s3_bucket_versioning" {
description = "Whether to enable bucket versioning for the S3 bucket."
default = false
}

variable "force_destroy_s3_bucket" {
description = "If 'configure_s3_backend' is enabled and you set this to true, when you run terraform destroy, this tells Terraform to delete all the objects in the S3 bucket used for backend storage. You should NOT set this to true in production or you risk losing all your data! This property is only here so automated tests of this module can clean up after themselves. Only used if 'enable_s3_backend' is set to true."
default = false
Expand Down

0 comments on commit 65d46f8

Please sign in to comment.