former2
former2 copied to clipboard
Support for Terraform import command in the generated Terraform output.
Would it be possible to add a commented line right above the generated Terraform resource with the exact Terraform import command?
For example something like this:
# terraform import aws_instance.EC2Instance <Instance ID>
resource "aws_instance" "EC2Instance" {
...
}
Why not using import statements?
https://developer.hashicorp.com/terraform/language/import/generating-configuration