I'm trying to use terraform to do part of our blue/green deployments.
We have a template to create an elb, launch config, and associated ASG. We pass the AMI for the launch config into the template as a variable.
What I'd like to happen when I run terraform (and pass in an AMI different than the one that's currently associated w/ the launch config/ASG) is for terraform to create a new launch config and ASG, but not touch/delete/modify the old one.
Then I can (via some other means i.e. Amazon API) stop traffic to the original ASG and eventually terminate it after validating the deploy is 'good'.
Obviously there's no 'create _dont_destroy' option right now, but I was wondering if there might be some other terraform trick that I'm not aware of.