Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 2.23 KB

File metadata and controls

62 lines (47 loc) · 2.23 KB

Amazon ECS "PRE-Render Task Definition Secrets" Action for GitHub Actions

This task is additionial task that is executed before ECS Render Task Definition Action that only injects Parameter Store Secrets into task-definition.json file and does nothing more.

Features:

  • ability to read parameter store secrets from multiple paths for given region,
  • explicit list of environment variable names to be used by the task definition.

Usage

Single source of parameters:

      - name: Render secrets from parameter store
        id: render-secrets
        uses: Selleo/[email protected]
        with:
          region: eu-central-1
          task-definition: task-definition.json
          envs: |
            AWS_ACCESS_KEY_ID 
            AWS_REGION
          paths: /ecs/app/production/

Options:

  • region - AWS Region to fetch Parameter Store Secrets
  • task-definition - Your input file
  • envs - List of environment variables included in the path that you want to render in task defintion
  • paths - List of sources to fetch Parameter Store Secrets from

Outputs:

  • task-definition - Output file path available for next steps (${{ steps.render-secrets.outputs.task-definition }})

Example usage with multiple paths:

      - name: Render secrets from parameter store
        id: render-secrets
        uses: Selleo/[email protected]
        with:
          region: eu-central-1
          task-definition: task-definition.json
          envs: |
            AWS_ACCESS_KEY_ID 
            AWS_REGION
          paths: |
            /ecs/app/production/
            /ecs/app-config/production/

LICENSE

See LICENSE file.

About Selleo

selleo

Software development teams with an entrepreneurial sense of ownership at their core delivering great digital products and building culture people want to belong to. We are a community of engaged co-workers passionate about crafting impactful web solutions which transform the way our clients do business.

All names and logos for Selleo are trademark of Selleo Labs Sp. z o.o. (formerly Selleo Sp. z o.o. Sp.k.)