aws-cdk-elasticache-redis-iam-rbac
aws-cdk-elasticache-redis-iam-rbac copied to clipboard
Demonstrates a sample architecture that will allow you to define AWS IAM roles that are mapped to Amazon ElastiCache Redis RBAC users by using AWS Secrets Manager as a proxy to manage access to login...
Managing ElastiCache Redis access with Redis RBAC, AWS SecretsManager and AWS IAM
This project demonstrates how to manage access to ElastiCache Redis by storing Redis RBAC username and passwords in AWS Secrets Manager. Granting or denying access to the secret will by proxy grant or deny access to Redis via RBAC.
This project creates an ElastiCache Redis Replication group, IAM roles, Lambdas, Secrets and ElastiCache RBAC users and user groups.
Details on the architecture can be found here
Installing CDK
This project uses the AWS Cloud Development Kit (CDK). You can find instructions on installing CDK here
How to build and deploy
- Run
npm installto install the node dependencies for the project - You may need to run
cdk bootstrap aws://<account_id>/<region>to initialize the region to use CDK - Build the zip files which contain lambda functions by calling
npm run-script zip - Deploy the project by calling
cdk deploy
Useful commands
npm run-script zipbundle lambda functions into zip filesnpm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
License
This library is licensed under the MIT-0 License. See the LICENSE file.