Giter Club home page Giter Club logo

aws-secret-manager-github-action's Introduction

AWS Secret Manager Github Action

๐Ÿ‘‹ Overview

A Github action to get AWS secrets from Secret Manager and output it in the Github action environment.

๐Ÿš€ Usage

Inputs

Name Description Required
envVariableName Name of the environment variable to access within the Github action runner (e.g., DATABASE_URL) true
secretId The identifier for the secret within AWS Secret Manager (e.g., staging_database_url) true
aws-access-key-id AWS access key for aws-action true
aws-secret-access-key AWS secret access key for aws-action true
aws-region The AWS region to configure for aws-action true

Flow

---
title: AWS Secret Manager Github Action
---
flowchart TD
    A[CI/CD Pipeline]--"Github Action
        Inputs:
        - envVariableName
        - secretId
        - aws-access-key-id
        - aws-secret-access-key
        - aws-region
    "-->B[AWS Secret Manager Github Action]
    B --Configures AWS Action-->C[AWS Configure Credentials Action]
    C --"- Gets the Secret from AWS Secret Manager
        - Sets the environment variable for the Github Action"-->A

Sample CI/CD Pipeline Using AWS Secret Manager Github Action

name: CI/CD Pipeline

on:
  push:
    branches:
      - staging
jobs:
  deploy_staging:
    name: Deploy to Staging
    runs-on: ubuntu-latest
    steps:
        - name: Checkout Code
            uses: actions/checkout@v2
        - name: Get AWS Secrets
            uses: sachasmart/[email protected]
            with:
              envVariableName: DATABASE_URL
              secretId: staging_database_url
              aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
              aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
              aws-region: us-east-1

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.