I faced an issue with wrong timeouts/retry handling for some resources.
During first execution of "terraform apply" I receive errors with resources creation. When I run the same command with the same resources again, everything works fine. I detected such errors with IAM roles and KMS keys.
Adding "--retry=5" to "terraform apply" command fixes this issue, but it should works without this flag.
Terraform Version
1.5.2
Affected Resource(s)
Please list the resources as a list, for example:
flexibleengine_identity_role_v3
flexibleengine_kms_key_v1
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Hello,
I faced an issue with wrong timeouts/retry handling for some resources. During first execution of "terraform apply" I receive errors with resources creation. When I run the same command with the same resources again, everything works fine. I detected such errors with IAM roles and KMS keys. Adding "--retry=5" to "terraform apply" command fixes this issue, but it should works without this flag.
Terraform Version
1.5.2
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Panic Output
Error creating FlexibleEngine Role: Action forbidden: [POST https://iam.eu-west-0.prod-cloud-ocb.orange-business.com/v3.0/OS-ROLE/roles], request_id: , error message: Request not authorized Error waiting for key (b5d9e6b2-d5b5-4711-b2ae-f1ca1512af21) to become ready: unexpected state '4', wanted target '2'. last error: %!s()
Expected Behavior
The mentioned resources are provisioned correctly without an additional "--retry" flag to "terraform apply" command.
Actual Behavior
The mentioned resources frequently are created during second or third execution of "terraform apply" command.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply