Difference between revisions of "Terraform import aws key pair.MyNewKeyInTerraform YourExistingKeyName2"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> terraform import aws_key_pair.MyNewKeyInTerraform test aws_key_pair.MyNewKeyInTerraform: Importing from ID "test"... aws_key_pair.MyNewKeyInTerraform: Import prepared!...")
 
Line 16: Line 16:
 
 
 
</pre>
 
</pre>
 +
 +
== Related commands ==
 +
* <code>[[aws ec2 describe-key-pairs]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 12:26, 2 September 2021

 terraform import aws_key_pair.MyNewKeyInTerraform test
aws_key_pair.MyNewKeyInTerraform: Importing from ID "test"...
aws_key_pair.MyNewKeyInTerraform: Import prepared!
  Prepared aws_key_pair for import
aws_key_pair.MyNewKeyInTerraform: Refreshing state... [id=test]
╷
│ Error: Cannot import non-existent remote object
│
│ While attempting to import an existing object to
│ "aws_key_pair.MyNewKeyInTerraform", the provider detected that no object
│ exists with the given id. Only pre-existing objects can be imported; check
│ that the id is correct and that it is associated with the provider's
│ configured region or endpoint, or use "terraform apply" to create a new
│ remote object for this resource.
╵

Related commands

See also

Advertising: