archmerc.com - The IT Architecture Mercenary's Blog | If you have a problem, if no one else can help, and if you can find one, maybe you can hi

Description: If you have a problem, if no one else can help, and if you can find one, maybe you can hire...An IT Architecture Mercenary!

Example domain paragraphs

I was refactoring some terraform code the other day and needed to import my existing resources into the state file to ensure the code was written properly. State files are different between 0.11 and 0.12, which has some ramifications on state file manipulation. I was using the excellent AWS VPC module and needed to import some subnets into the state file. I have a subnet per AZ, so I had 6 to import. I would typically have run the following command in terraform 0.11:

terraform import module.vpc.aws_subnet.public.[0]

Running that with terraform 0.12 results in the following error: