CDK IAM Generator
AWS CDK construct helps create IAM Managed Policies and IAM Roles using JSON Configuration
This package is written in TypeScript and made available via JSII to all other supported languages. Package are available on:
Quickstart
Install or update from npm
TypeScript/Javascript
npm i cdk-iam-generator
Python
pip install cdk-iamgenerator
Usage
** TypeScript **
; new IamPolicyGeneratorthis,"IamPolicyGenerator",; new IamRoleGeneratorthis,"IamRoleGenerator",;
Prerequsites
Example folder structure for Json Configuration of Roles and Policies:
config
├── policy
│ ├── CodeCommitArchive.json
│ └── KMSPolicy.json
│ └── CreateServiceLinkedRoleECS.json
│ └── DeployService1.json
│ └── DeployService2.json
├── iam_generator_config.json
Place all the Policy Json files inside config/policy in your project root and policy file would look something like this:
Configure the policies and roles to be created in config/iam_generator_config.json file and would look something like this:
## License
cdk-iam-generator is distributed under the Apache License, Version 2.0.
See LICENSE for more information.