-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk: bootstrapping fails due to permissions boundary name not matching the IAM conventions #26320
Comments
How do you have an IAM policy name with a slash in it? The regex we use is the same as described in the linked documentation aws-cdk/packages/aws-cdk/lib/api/bootstrap/bootstrap-environment.ts Lines 280 to 287 in 66c0aa1
|
If you have slashes, that's probably part of the optional path. You want to supply the friendly name, which is what would appear after the path. |
Hmm the place this value ends up is here
If a policy has a path, is that path required when specifying the arn? The documentation is unclear to me, though specifying the path obviously doesn't hurt. Fixing this to accept paths should probably only consist of updating the regex linked above, and adding/updating tests - feel free to check out our contributing guide if you'd like to help out 🙂 |
I'd love to but unfortunately my contract doesn't allow me to contribute. 😞 |
In this particular code:
what we need to put into
(of course, the number of forward slashes can vary) |
@peterwoodworth |
We usually release once a week or so, so once this is merged it will probably take a week at most |
Policy names with slashes (`/`) are not allowed when bootstrapping. For example: ``` cdk bootstrap --custom-permissions-boundary aaa/bbb ``` Would fail: ``` Error: The permissions boundary name aaa/bbb does not match the IAM conventions. ``` This fix allows to specify paths in the policy name. Closes #26320. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Policy names with slashes (`/`) are not allowed when bootstrapping. For example: ``` cdk bootstrap --custom-permissions-boundary aaa/bbb ``` Would fail: ``` Error: The permissions boundary name aaa/bbb does not match the IAM conventions. ``` This fix allows to specify paths in the policy name. Closes aws#26320. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
cdk bootstrap
command doesn't accept IAM policy names with forward slash (/) in it.Expected Behavior
cdk should accept IAM name with forward slashes in its name
Current Behavior
When I try to run
cdk bootstrap
command with permissions boundry with forward slash in its name, cdk fails:Reproduction Steps
The error and code I refer to runs on companys laptop and I cannot copy/paste full message here.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.87.0
Framework Version
No response
Node.js Version
v18.12.1
OS
MacOS
Language
Go
Language Version
1.20.1
Other information
No response
The text was updated successfully, but these errors were encountered: