Difference between revisions of "Terraform import"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
 
* <code>[[terraform import aws_key_pair.MyNewKeyInTerraform YourExistingKeyName]]</code>
 
* <code>[[terraform import aws_key_pair.MyNewKeyInTerraform YourExistingKeyName]]</code>
 
* <code>[[terraform import aws key pair.MyNewKeyInTerraform YourExistingKeyName2]]</code>
 
* <code>[[terraform import aws key pair.MyNewKeyInTerraform YourExistingKeyName2]]</code>
 
+
* <code>[[Error: Reference to undeclared resource]]</code>
[[Error: Reference to undeclared resource]]
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 16:36, 27 February 2023

Before using terraform import you must manually write a resource configuration block for the resource.

Examples

Errors

Related terms

See also

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