Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
lock

GitHub Action

AWS SSM Parameter Store GetParameters Action

v1

AWS SSM Parameter Store GetParameters Action

lock

AWS SSM Parameter Store GetParameters Action

AWS Systems Manager Parameter Store GetParameters call, including placing the results into environment variables

Installation

Copy and paste the following snippet into your .yml file.

              

- name: AWS SSM Parameter Store GetParameters Action

uses: dkershner6/aws-ssm-getparameters-action@v1

Learn more about this action in dkershner6/aws-ssm-getparameters-action

Choose a version

AWS SSM Parameter Store GetParameters Action

A GitHub action centered on AWS Systems Manager Parameter Store GetParameters call, and placing the results into environment variables.

This action is optimized to use the least possible number of API calls to Parameter Store, to avoid the low rate limits.

Usage

- name: Configure AWS credentials
  id: aws-credentials
  uses: aws-actions/configure-aws-credentials@v1
  with:
      aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
      aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_KEY }}
      aws-region: us-east-1

- uses: dkershner6/aws-ssm-getparameters-action@v1
  with:
      parameterPairs: "/region/primary = PRIMARY_AWS_REGION,
          /accountAlias = AWS_ACCOUNT_ALIAS"
      # The part before equals is the ssm parameterName, and after is the ENV Variable name for the workflow.
      # No limit on number of parameters. You can put new lines and spaces in as desired, they get trimmed out.
      withDecryption: "true" # defaults to true