Skip to content

A github action to update task definitions for ecs scheduled tasks.

License

Notifications You must be signed in to change notification settings

CoProcure/aws-update-cloudwatch-ecs-event-target

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Update Cloudwatch Event Target with Task Definition

Updates Task Definitions to the latest active version for all Cloudwatch Event Targets from a list of rule names.

This is useful for keeping scheduled tasks up-to-date with the latest deployed builds rather than managing separate task definitions for each scheduled task.

Usage

- name: Update task definitions
  uses: coprocure.us/[email protected]
  with:
    task-defintion-family: task-definition-name
    rules: |-
      rule-1
      rule-2
      rule-3

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

Note that this action retrieves and sets the latest task definition for a given task definition family. For each rule, all event targets will be updated.

Credentials and Region

This action relies on the default behavior of the AWS SDK for Javascript to determine AWS credentials and region. Use the aws-actions/configure-aws-credentials action to configure the GitHub Actions environment with environment variables containing AWS credentials and your desired region.

License Summary

This code is made available under the MIT license.

About

A github action to update task definitions for ecs scheduled tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published