cos: importing a bucket does not import the key_protect
attribute
#3394
Labels
service/Object Storage
Issues related to Cloud Object Storage
key_protect
attribute
#3394
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
https://gist.github.com/willholley/25e0954f10da982accba2777a061829c
Panic Output
Expected Behavior
Importing a COS bucket encrypted with a KMS key known to Terraform should not force recreation on the next
terraform plan/apply
operation.Actual Behavior
When importing a COS bucket encrypted with a KMS key, the next
terraform apply/plan
operation attempts to force recreation of the COS bucket. This appears to be due to thekey_protect
attribute not being imported.Steps to Reproduce
terraform apply
. Note the CRN ofibm_cos_bucket.test
that gets created.terraform state rm 'ibm_cos_bucket.test'
terraform import 'ibm_cos_bucket.test'
`terraform plan
.Example plan output:
Important Factoids
I've reproduced this on multiple accounts, using COS buckets created via Terraform or by hand.
References
The text was updated successfully, but these errors were encountered: