Running terraform destroy -auto-approve -var-file ./variables.tfvars will remove an AWS account from RSC.
Current Behavior
Running terraform destroy -auto-approve -var-file ./variables.tfvars results in the following error:
│ Error: failed to delete account: failed to request bulkDeleteAwsCloudAccountWithoutCft: graphql response body is an error (status code 200): FAILED_PRECONDITION: Feature CLOUD_NATIVE_S3_PROTECTION with status CONNECTED is not valid for deletion. (code: 400, traceId: AWgABR5CM1FD7P6vhgh6ag==)
Looking in RSC shows that S3 protection is still enabled. I suspect that the provider is not disabling protection on the S3 account before attempting to delete it.
Expected Behavior
Running
terraform destroy -auto-approve -var-file ./variables.tfvars
will remove an AWS account from RSC.Current Behavior
Running
terraform destroy -auto-approve -var-file ./variables.tfvars
results in the following error:Looking in RSC shows that S3 protection is still enabled. I suspect that the provider is not disabling protection on the S3 account before attempting to delete it.
Provider version is beta.15
polaris_aws_cnp_account
block is:var.rsc_aws_features
is: