Skip to content

Create dotenv from AWS SSM

Actions
Get many SSM Parameter Store values ​​from a file to the dotenv file
v1.0.1
Latest
Star (1)

Release Tests CodeQL

Create a dotenv from aws parameter store list 🚀

Create a dotenv from another dotenv file with a list of paths from aws parameter store

Parameters

Input Required? Default Description
inputFilename no .env.map Filename received as parameter with ssm paths
outputFilename no .env Filename received as parameter for output file

Example input file .env.map

VAR1=/qa/core/var1
VAR2=/qa/core/var2
VAR3=/qa/core/var3

Example output file .env

VAR1=value1
VAR2=value2
VAR3=value3

Example usage

name: Create dotenv file

on: [ push ]

jobs:
  create-dotenv-file:
    name: Create dotenv file
    runs-on: ubuntu-latest
    
    steps:
      - uses: actions/checkout@v3

      # reference documentation: https://github.com/aws-actions/configure-aws-credentials
      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v2
        with:
          role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
          aws-region: us-east-2
      
      - uses: 3nu3l/dotenv-from-aws-ssm@v1

Create dotenv from AWS SSM is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Get many SSM Parameter Store values ​​from a file to the dotenv file
v1.0.1
Latest

Create dotenv from AWS SSM is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.