A Sample of AWS CDK to create IAM Group and Users. This cdk script is to create the following resources
- AWS::IAM::Policy which can pull images of ECR Registry
- AWS::IAM::Group which has the above policy
- AWS::IAM::User which blong to the above group
- Node.js 8.11 or later
- AWS account
- ECR Registry
- Clone this repository
- Run
npm install
to install dependencies - Run
npm run build
to build - Export the following environment variables
- ACCOUNT : AWS account ID
- REGISTRY_NAME : ECR Registry name
- Run
npm run cdk:deploy
to create CFn stack and IAM resources