aws-vpc-builder-cdk icon indicating copy to clipboard operation
aws-vpc-builder-cdk copied to clipboard

Ability to pass a Permission boundary name via the context on the command line

Open DannyBlazejczak opened this issue 1 year ago • 1 comments

Issue #, if available:

Description of changes:

One way to resolve the issue with the permission boundary, is to update the cdk.json, and include a permission boundary here on this level. This is well documented and works well.

I have several accounts, some of which use no permission boundary, some have permission boundaries with different names. Hence I want to be able to pass the permission boundary. In this PR is have done this by passing the name as an additional parameter in the context.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

DannyBlazejczak avatar May 14 '24 07:05 DannyBlazejczak

Thanks very much, would you be able to add something to (at least one) test case to confirm positive (included) and negative (not included) scenarios with the template rendering as desired?

I've never used this capability, but I surmise it will add a permission boundary to any IAM Role entities the subsequent stacks create?

apmclean avatar Jul 10 '24 22:07 apmclean