It’s complicated. I am standing up new instances of ecs services that were previously built manually, but now via pulumi. To stand up an ecs service it needs a target group attached to a listener rule. The listener rules already exist. The migration plan is to modify the existing listener rules and slowly shift traffic from the old target group to the new one using percentages. I want to import the existing listener rule, send 100% traffic to the old target group, then 0% to the new one, then stand up the service. This will allow it to get running. Then, using a pulumi config parameter set by ci cd, I’ll shift that traffic the other direction when we’ve confirmed the service works. The problem is that I cannot import the listener rule and add a second target group definition in the same go.
I’m going to see if I can use my firstrun logic to solve this though