Giter VIP home page Giter VIP logo

aws-samples / aws-cdk-elasticache-redis-iam-rbac Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 10.0 1.63 MB

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 credentials.

License: MIT No Attribution

JavaScript 6.56% Shell 0.22% Python 8.68% TypeScript 84.54%
elasticache-redis rbac-roles rbac rbac-management cdk cdk-examples iam secrets-manager secretsmanager

aws-cdk-elasticache-redis-iam-rbac's Introduction

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

  1. Run npm install to install the node dependencies for the project
  2. You may need to run cdk bootstrap aws://<account_id>/<region> to initialize the region to use CDK
  3. Build the zip files which contain lambda functions by calling npm run-script zip
  4. Deploy the project by calling cdk deploy

Useful commands

  • npm run-script zip bundle lambda functions into zip files
  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-cdk-elasticache-redis-iam-rbac's People

Contributors

amazon-auto avatar its-mirus-lu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.