aws_msk_cluster resource doesn't save arn to state when available #21528
Labels
bug
Addresses a defect in current functionality.
eventual-consistency
Pertains to eventual consistency issues.
service/kafka
Issues and PRs that pertain to the kafka service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
timeouts
Pertains to timeout increases.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform 1.0.9
Aws provider: 3.63.0
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
Panic Output
Expected Behavior
While my specific timeout was due to AWS session token expiry, when creation of a new msk cluster resource is triggered, it should store the resulting ARN in the state as soon as it's available. If there's an error during the process, the resource can be tainted, but can later be refreshed if re-attempted or manually fixed.
Actual Behavior
When the timeout stops the creation process, it doesn't store the arn, so terraform is unaware that it has actually created the resource. Subsequent apply operations complain about a name conflict.
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
non-automatically renewable AWS session duration
References
The text was updated successfully, but these errors were encountered: