Skip to content

Inserts an environment variable into an Amazon ECS task definition JSON file.

License

Notifications You must be signed in to change notification settings

tarepan/amazon-ecs-render-task-definition-env

 
 

Repository files navigation

Amazon ECS "Render Env in Task Definition" Action for GitHub Actions

Inserts a environment variable into an Amazon ECS task definition JSON file, creating a new task definition file.

Table of Contents

Usage

To insert the value production as an environment variable NODE_ENV in the task definition file, and then deploy the edited task definition file to ECS:

- name: Render env in Amazon ECS task definition
  id: render-env
  uses: tarepan/amazon-ecs-render-task-definition-env@v2
  with:
    task-definition: task-definition.json
    container-name: envContainer
    env-name: NODE_ENV
    env-value: production

- name: Register to Amazon ECS
  uses: tarepan/amazon-ecs-register-task-definition@v2
  with:
    task-definition: ${{ steps.render-env.outputs.task-definition }}

See action.yml for the full documentation for this action's inputs and outputs.

License Summary

This code is made available under the MIT license.

About

Inserts an environment variable into an Amazon ECS task definition JSON file.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%