iam: role arn parsed incorrectly #26175
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
wontfix
We have determined that we will not resolve the issue.
Describe the bug
I am using the following code to grant index read/write from an imported role to an imported domain.
The role that I am using follows the structure:
arn:aws:iam::<account>:role/<project-name>/<role-name>
When I use the following piece of CDK code, it fails saying it cannot find the role called
<project-name>
.It seems like it's incorrectly parsing out the role for this policy.
Example of the Typescript CDK code:
Example of the synthesized CloudFormation:
Expected Behavior
It should grant access correctly for the role to access this domain and be granting access to the full role ARN.
Current Behavior
However, due to some behind-the-scenes logic it splits the ARN incorrectly.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.83.1 (build 006b542)
Framework Version
No response
Node.js Version
v18.0.0
OS
MacOS 13.4 Ventura
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: