Seth Floyd
04/25/2024, 7:35 PMatlantis plan -d service/thing -w dev -- -target=aws_instance.instance_1 -target=aws_instance.instance_2 ✅
atlantis apply -d service/thing -w dev -- -target=aws_instance.instance_1 -target=aws_instance.instance_2 ✅
But if I run a replace command, Atlantis wants to replace everything that “must be replaced” and not just the two instances im pointing at. My replace command looks like this:
atlantis plan -d service/thing -w dev -- -replace=aws_instance.instance_1 -replace=aws_instance.instance_2
What am I missing here?PePe Amengual
04/25/2024, 8:38 PMPePe Amengual
04/25/2024, 8:38 PMSeth Floyd
04/26/2024, 3:10 PMtaint you would taint the one or more resources, then you could run a targetd plan/apply against just that one resource. Now with the replace command you use that flag in an apply command. But since there are other resources that are expecting changes those show up in the plan/apply as well. TLDR; theres not a way to do a “targeted replace” you just name the resource you want to replace and atlantis will include that in its plan/apply with any other resources that are expecting changes. #ThatSucksSeth Floyd
04/26/2024, 3:11 PMtaint command was depped and replaced with the replace command but it actually doesnt work the same.PePe Amengual
04/26/2024, 3:40 PMSeth Floyd
04/26/2024, 3:40 PMPePe Amengual
04/26/2024, 3:40 PMSeth Floyd
04/26/2024, 3:41 PM