[Bug]: Use of the ListStateMachineVersionsWithContext method is not supported in all AWS regions #32969
Labels
bug
Addresses a defect in current functionality.
service/sfn
Issues and PRs that pertain to the sfn service.
Terraform Core Version
1.2.3
AWS Provider Version
5.12.0
Affected Resource(s)
The following call introduced with version 5.11.0 is not supported in AWS regions where Step Function versioning is unavailable.
listVersionsOutput, err := conn.ListStateMachineVersionsWithContext(ctx, input)
Expected Behavior
Terraform plan should complete successfully
Actual Behavior
An
AccessDeniedException
is reported while Terraform attempts to collect information about the existing resources.Relevant Error/Panic Output Snippet
2023-08-11T12:16:33.154Z [ERROR] provider.terraform-provider-aws_v5.12.0_x5: Response contains error diagnostic: tf_resource_type=aws_sfn_state_machine tf_rpc=ReadResource @module=sdk.proto diagnostic_detail= diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=ee12d10a-71b1-975f-695a-056d75260b28 @caller=github.com/hashicorp/terraform-plugin-go@v0.18.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_summary="listing Step Functions State Machine (actual state machine arn) Versions: AccessDeniedException: status code: 400, request id: 90ea0fcf-0d6c-4306-8887-e11d692d4f9a" tf_proto_version=5.3 timestamp=2023-08-11T12:16:33.154Z
Terraform Configuration Files
N/A
Steps to Reproduce
In an AWS region which does not support Step Function versions, attempt to create/update a state machine.
Debug Output
No response
Panic Output
No response
Important Factoids
This problem is limited to regions not supporting Step Function versions but for where it occurs, it is a complete blocker.
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: