forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iam): only attach policies to imported roles if the accounts match
We allow attaching policies to the imported role if the account passed in the ARN matches the account of the stack the policy belongs to, or if either one of those accounts was not specified (i.e., is env-agnostic), or if the ARN used for importing was dynamic. Fixes aws#2985 Fixes aws#3025
- Loading branch information
Showing
4 changed files
with
610 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.