Difference between revisions of "Terraform import aws key pair.MyNewKeyInTerraform YourExistingKeyName"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | *<code>[[terraform import aws_key_pair.MyNewKeyInTerraform YourExistingKeyName2]]</code> | ||
+ | |||
+ | ===Errors=== | ||
Error: resource address "aws_key_par.MyNewKeyInTerraform" does not exist in the configuration. | Error: resource address "aws_key_par.MyNewKeyInTerraform" does not exist in the configuration. | ||
Line 8: | Line 11: | ||
− | |||
== See also == | == See also == |
Latest revision as of 12:18, 6 September 2021
Errors[edit]
Error: resource address "aws_key_par.MyNewKeyInTerraform" does not exist in the configuration. Before importing this resource, please create its configuration in the root module. For example: resource "aws_key_pair" "MyNewKeyInTerraform" { # (resource arguments) }
See also[edit]
terraform import
,terraform import --help
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: