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
Description: `Whether or not to allow Terraform to destroy the instance. Unless this field is set to false in Terraform state, a terraform destroy or terraform apply that would delete the instance will fail.`,
1159
1159
},
1160
1160
1161
+
"allow_resource_tags_on_deletion": {
1162
+
Type: schema.TypeBool,
1163
+
Optional: true,
1164
+
Default: false,
1165
+
Description: `Whether or not to allow table deletion when there are still resource tags attached.`,
1166
+
},
1167
+
1161
1168
// TableConstraints: [Optional] Defines the primary key and foreign keys.
1162
1169
"table_constraints": {
1163
1170
Type: schema.TypeList,
@@ -1828,13 +1835,15 @@ func resourceBigQueryTableDelete(d *schema.ResourceData, meta interface{}) error
1828
1835
returnfmt.Errorf("cannot destroy table %v without setting deletion_protection=false and running `terraform apply`", d.Id())
returnfmt.Errorf("cannot destroy table %v without clearing the following resource tags: %v", d.Id(), resourceTags)
1845
+
returnfmt.Errorf("cannot destroy table %v without unsetting the following resource tags or setting allow_resource_tags_on_deletion=true: %v", d.Id(), resourceTags)
1846
+
}
1838
1847
}
1839
1848
1840
1849
config:=meta.(*transport_tpg.Config)
@@ -2668,6 +2677,9 @@ func resourceBigQueryTableImport(d *schema.ResourceData, meta interface{}) ([]*s
0 commit comments