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
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
resource "aws_s3_bucket" "vault_storage" {
count = var.enable_s3_backend ? 1 : 0
bucket = var.s3_bucket_name
force_destroy = var.force_destroy_s3_bucket
tags = merge(
{
"Description" = "Used for secret storage with Vault. DO NOT DELETE this Bucket unless you know what you are doing."
},
var.s3_bucket_tags,
)
# 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.
lifecycle {
create_before_destroy = true
}
}
resource "aws_s3_bucket_versioning" "vault_storage" {
count = var.enable_s3_backend ? 1 : 0
bucket = aws_s3_bucket.vault_storage[count.index].id
versioning_configuration {
status = var.enable_s3_bucket_versioning
}
}
terraform-aws-vault/modules/vault-cluster/main.tf
Line 283 in 350b705
What we need to do here on Line 283 is to delete section for versioning and move it to another resource
The text was updated successfully, but these errors were encountered: