Skip to content

reuse existing task definitions#97

Open
wlggraham wants to merge 1 commit intomainfrom
ecs_plugin_add_family
Open

reuse existing task definitions#97
wlggraham wants to merge 1 commit intomainfrom
ecs_plugin_add_family

Conversation

@wlggraham
Copy link
Contributor

Old Behavior: Create a new task definition revision every time the plugin is called.

Problem: Even though this is the standard for ECS services, this quickly became an issue with standalone tasks, since the overriding resources (CPU & Memory) were constantly changing the task definition.

New Behavior: Allow new fields in job and command context:

  • task_family: Override the existing name of the task family in your task definition if desired
  • use_latest_revision: Instead of registering a new task definition, use the latest of the configured task_family
  • task_revision: Use a specific revision

This will allow a few different desired outcomes:

  • Have a single task definition template that can represent a handful of desired configurations without needing to register new task definitions every time.
  • Pick a very specific revision if a rollback is needed for some reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant