Skip to content

Instantly share code, notes, and snippets.

@allanharris
allanharris / awsvpc-mode-multi-targetgroup-alb.yml
Created February 5, 2022 00:03
Workaround for 'awsvpc' network-mode containers and multiple target groups from https://github.com/aws/amazon-ecs-agent/issues/1351
AWSTemplateFormatVersion: 2010-09-09
Description: |
Replicates (de)registration events from a source target group to a destionation target group
in order to workaround ECS limitation where a single container cannot automatically register
to multiple target groups
Parameters:
SourceTargetGroupArn:
Description: ARN of a source target group to replicate targets from