Added option to set force_destroy on pf buckets (#3192)
* Added option to set force_destroy on pf buckets * added force_destroy to schema
This commit is contained in:
@@ -53,6 +53,7 @@ module "automation-bucket" {
|
||||
prefix = each.value.prefix
|
||||
name = "tf-state"
|
||||
encryption_key = lookup(each.value, "encryption_key", null)
|
||||
force_destroy = lookup(each.value, "force_destroy", null)
|
||||
iam = {
|
||||
for k, v in lookup(each.value, "iam", {}) : k => [
|
||||
for vv in v : try(
|
||||
|
||||
@@ -64,6 +64,7 @@ locals {
|
||||
name = name
|
||||
description = lookup(opts, "description", "Terraform-managed.")
|
||||
encryption_key = lookup(opts, "encryption_key", null)
|
||||
force_destroy = lookup(opts, "force_destroy", null)
|
||||
iam = lookup(opts, "iam", {})
|
||||
iam_bindings = lookup(opts, "iam_bindings", {})
|
||||
iam_bindings_additive = lookup(opts, "iam_bindings_additive", {})
|
||||
|
||||
@@ -283,6 +283,7 @@ module "buckets" {
|
||||
prefix = each.value.prefix
|
||||
name = "${each.value.project_name}-${each.value.name}"
|
||||
encryption_key = each.value.encryption_key
|
||||
force_destroy = each.value.force_destroy
|
||||
iam = {
|
||||
for k, v in each.value.iam : k => [
|
||||
for vv in v : try(
|
||||
|
||||
@@ -456,6 +456,9 @@
|
||||
"iam_bindings_additive": {
|
||||
"$ref": "#/$defs/iam_bindings_additive"
|
||||
},
|
||||
"force_destroy": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
- **iam**: *reference([iam](#refs-iam))*
|
||||
- **iam_bindings**: *reference([iam_bindings](#refs-iam_bindings))*
|
||||
- **iam_bindings_additive**: *reference([iam_bindings_additive](#refs-iam_bindings_additive))*
|
||||
- **force_destroy**: *boolean*
|
||||
- **labels**: *object*
|
||||
*additional properties: String*
|
||||
- **location**: *string*
|
||||
|
||||
Reference in New Issue
Block a user