Difference between revisions of "Terraform import"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
== Examples ==
 
== Examples ==
 
* <code>[[terraform import --help]]</code>
 
* <code>[[terraform import --help]]</code>
* <code>[[terraform]] import [[aws_instance]].my_foo i-abcd1234</code> <ref>https://www.terraform.io/docs/cli/import/index.html</ref>
+
* <code>[[terraform import aws_instance.my_foo i-abcd1234]]</code> <ref>https://www.terraform.io/docs/cli/import/index.html</ref>
 
* <code>terraform import [[aws_default_subnet]].public_subnet subnet-9d4a7b6c</code>
 
* <code>terraform import [[aws_default_subnet]].public_subnet subnet-9d4a7b6c</code>
 
* <code>terraform import [[aws_default_vpc]].default vpc-a01106c2</code>
 
* <code>terraform import [[aws_default_vpc]].default vpc-a01106c2</code>

Revision as of 19:38, 22 June 2022

Examples

With errors


Related terms

See also

  • https://www.terraform.io/docs/cli/import/index.html
  • Advertising: