terraform-ebs-attachmentizer
terraform-ebs-attachmentizer copied to clipboard
Convert ebs_block_device blocks in aws_instance resource to aws_ebs_volume and aws_volume_attachment resources
Their names are `aws_instance.blah-name.3` with a variety of numbers. We should create resources with names like `aws_ebs_volume.blah-xvda.3` and `aws_volume_attachment.blah-xvda.3`.
Being able to check the diff would inspire confidence :-)
Right now we're doing `aws_ebs_volume.${INSTANCE_RES_NAME}-${SHORT_DEVICE_NAME}`. It might be nice to allow specifying a Go template for the name.