iam: support Role.fromLookup()
method
#33602
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
A generic Context Provider for CloudControl API has been added in aws-cdk-cli.
aws/aws-cdk-cli#138
This allows us to implement new context methods.
Use Case
There will be many cases where IAM roles will be created outside the CFn stack and used.
Importing actual existing roles from AWS accounts is very convenience. It is also useful to be able to make an error if a role does not exist.
Proposed Solution
Add
Role.fromLookup
method using the new context provider.Other Information
No response
Acknowledgements
CDK version used
2.181.0
Environment details (OS name and version, etc.)
Mac
The text was updated successfully, but these errors were encountered: