Closed kimi-p closed 3 weeks ago
There are two formats of role ARN for Step Functions if create the role by default on the AWS SF UI:
arn:aws:iam::425362996713:role/prodnext-statemachine-prodnextstatemachineuninstrum-htJ0SB47b7yh
arn:aws:iam::425362996713:role/service-role/StepFunctions-L2TTest-NestedStepFunctions-role-qye91on3g
/service-role/
/
We didn't noticed that there are the second format before. This PR fix the parsing by fetching the last element from the list after splitting.
Branch report: kimi/fix-roleArn-split Commit report: 7e7fcbb Test service: datadog-ci-tests
kimi/fix-roleArn-split
7e7fcbb
datadog-ci-tests
:white_check_mark: 0 Failed, 48 Passed, 0 Skipped, 22.4s Total duration (3m 4.49s time saved)
What and why?
There are two formats of role ARN for Step Functions if create the role by default on the AWS SF UI:
arn:aws:iam::425362996713:role/prodnext-statemachine-prodnextstatemachineuninstrum-htJ0SB47b7yh
arn:aws:iam::425362996713:role/service-role/StepFunctions-L2TTest-NestedStepFunctions-role-qye91on3g
(/service-role/
has an additional/
)We didn't noticed that there are the second format before. This PR fix the parsing by fetching the last element from the list after splitting.
Review checklist