Create dotenv from AWS SSM
ActionsTags
(2)Create a dotenv from another dotenv file with a list of paths from aws parameter store
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 |
VAR1=/qa/core/var1
VAR2=/qa/core/var2
VAR3=/qa/core/var3
VAR1=value1
VAR2=value2
VAR3=value3
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.