We recently ran up against an issue wherein ECS was not running new tasks on EC2 instances that have always existed in the ECS service. In this post, I’ll go over how we discovered and subsequently resolved the issue.
This post is broken down into the following sections:
This post assumes some basic knowledge of:
In this post I’ll be going over some personal learnings — the dos and don’ts — about moving new and existing infrastructure into Terraform, and migrating Resources between Terraform Remotes. I’ll be focusing on cloud infrastructure, primarily Amazon Web Services (AWS) as my cloud service provider. The general concepts remain the same regardless of which provider you are working with.
I recently found myself needing to migrate a mix of a partially managed Terraform stack with a bunch of unmanaged AWS services over to Terraform cloud from S3, ideally without any downtime. One of the challenges I was facing was not having pre-existing documentation. …