I dont find a way to override root size device using block_device_mappings in aws_launch_template with terraform aws.
I know I can specify an extra volume size doing for example:
block_device_mappings {
device_name = "/dev/xvda"
ebs {
volume_size = "${var.frontend_kong_volume_size}"
volume_type = "${var.frontend_kong_volume_type}"
delete_on_termination = "true"
}
}
but I get a new disk in the VM with those specifications. But what I want to do is resize the root disk.
Can you help me to figure out how to do it?
Thanks.