former2 icon indicating copy to clipboard operation
former2 copied to clipboard

Support for Terraform import command in the generated Terraform output.

Open lvets opened this issue 1 year ago • 1 comments

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" {
...
}

lvets avatar Jun 25 '24 18:06 lvets

Why not using import statements?

https://developer.hashicorp.com/terraform/language/import/generating-configuration

akvadrako avatar Oct 28 '24 09:10 akvadrako