Closed tam0ri closed 11 months ago
Thank you for your PR!
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Following code is properly creates a step in Step Functions
However, it creates wrong statement in the role policy.
Correct service prefix for MWAA is
airflow
. https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonmanagedworkflowsforapacheairflow.htmlThis issue is similar with #27573.
Expected Behavior
Action should be
airflow:listEnvironments
Current Behavior
Action is
mwaa:listEnvironments
Reproduction Steps
Sample code for reproduction is below:
Possible Solution
Adding
mwaa
into iamServiceMap. I'll submit PR later. https://github.com/aws/aws-cdk/blob/25ee8ef61d6b33628923a0fee4c042a0f0f2441e/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/aws-sdk/call-aws-service.ts#L92-L95Additional Information/Context
No response
CDK CLI Version
v2.110.0
Framework Version
No response
Node.js Version
v18.17.1
OS
Linux
Language
TypeScript
Language Version
No response
Other information
No response