puppetlabs-toy-chest / puppetlabs-aws

Puppet module for managing AWS resources to build out infrastructure
Apache License 2.0
188 stars 216 forks source link

Add refresh for Ecs_service resources #403

Closed prozach closed 7 years ago

prozach commented 7 years ago

Without this change, the ECS service is unable to track changes to the task. This leaves the code in a state where the task definition is updated, but the service is not refreshed to be running on that code. Here we implement the ability for the Ecs_service resources to subscribe to Ecs_task_definition resources. The autosubscribe in my testing didn't seem to work correctly, but I think the code is correct. In any case, users are able to specify 'subscribe =>' relationships between ECS services and their tasks with this update.