Difference between revisions of "Terraform import aws key pair.MyNewKeyInTerraform YourExistingKeyName"
Jump to navigation
Jump to search
(Created page with " Error: resource address "aws_key_par.MyNewKeyInTerraform" does not exist in the configuration. Before importing this resource, please create its configuration in the root...") |
|||
Line 3: | Line 3: | ||
Before importing this resource, please create its configuration in the root module. For example: | Before importing this resource, please create its configuration in the root module. For example: | ||
− | resource "aws_key_par" "MyNewKeyInTerraform" { | + | [[resource]] "aws_key_par" "MyNewKeyInTerraform" { |
# (resource arguments) | # (resource arguments) | ||
} | } |
Revision as of 12:03, 2 September 2021
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_par" "MyNewKeyInTerraform" { # (resource arguments) }
See also
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: