Hi there,
What I have?
- aws
- terraform
- compute environment
- batch queue
- launch template
What is the problem?
I had tried to update some properties of launch template (for example updating volume_size or image id). But terraform created a migration only for updating the launch template:
1 ~ resource "aws_launch_template" "aws_launch_template" {
2 ~ latest_version = 2 -> (known after apply)
3 ~ block_device_mappings {
4 ~ ebs {
5 ~ volume_size = 110 -> 100
6 }
7 }
8 }
9
~
What did I expect:
Terraform created more complex migration:
- created new launch template
- created new compute environment with new launch template and previous queus
- disabled previous compute environment
- destroyed previous compute environment
Question:
I think that I want so much from terraform.
What is the best practice to update compute environment using terraform?