Giter Club home page Giter Club logo

rotate-ssh-aws's Introduction

rotate-ssh-aws

Lambda to rotate the SSH keys using Secrets Manager.

Initial code is taken from https://github.com/aws-samples/aws-secrets-manager-ssh-key-rotation/tree/master/lambda. Code is modified to add SSH Public key to an S3 Object, which can be pulled by the new EC2 instances which come up (due to auto-scaling)

cloudformation.yaml is a Cloud Formation script to create the Lambda Function in AWS.

In cloudformation.yaml, please change few of the parameters (look for FIXME in cloudformation.yaml) based on your setup before providing the script to AWS Cloud Formation.

Following parameters need to be changed:

  • S3 Bucket where Public key will be stored
  • S3 object where Public key will be stored
  • Usernames for the Linux User that is used to log into the Workers
  • S3 URI of Lambda code
  • ARN of S3 Bucket where Public key will be stored
  • Security Group IDs
  • Subset IDs

blog

Please go though the following blog for detailed step by step procedure to setup https://medium.com/@singhamrit/ec2-mfa-ssh-key-rotation-fddc807f9318

rotate-ssh-aws's People

Contributors

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