Skip to content

Updates an ECS task definition with single or multiple containers, replacing their image references.

License

Notifications You must be signed in to change notification settings

yumemi-inc/update-ecs-task-definition-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Update ECS Task Definition Action

Warning
This is not an official product of YUMEMI Inc.

Updates an ECS task definition with single or multiple containers, replacing their image references.

Usage

permissions:
  contents: read
  id-token: write
steps:
  - 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

  - name: Update Task Definition
    uses: yumemi-inc/update-ecs-task-definition-action@v1
    with:
      family: my-task-definition
      images: |
        app=123456789100.dkr.us-east-2.amazonaws.com/my-app:latest
        otel-collector=ghcr.io/my-org/my-otel-collector:v1

Inputs

Name Type Description
family string Name of the task definition family to where fetch the latest revision and create a new revision.
image List<string> Map of the container name and the image URI to update in the task definition. Must be container_name=image_uri format.

Outputs

Name Type Description
task-definition JSON<Object> Updated task definition payload.
old-task-definition-arn string ARN of the old revision of the task definition.
new-task-definition-arn string ARN of the new revision of the task definition.

About

Updates an ECS task definition with single or multiple containers, replacing their image references.

Resources

License

Stars

Watchers

Forks