mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Migrating links to new format
This commit is contained in:
@@ -13,4 +13,4 @@ importable. As a result, you cannot import all Terraform resources.
|
||||
The resources that you can import are documented at the bottom of
|
||||
each resource documentation page in the [Terraform Registry](https://registry.terraform.io/). If you have issues importing a resource, report an issue in the relevant provider repository.
|
||||
|
||||
To make a resource importable, refer to [Extending Terraform: Resources — Import](/plugin/sdkv2/resources/import).
|
||||
To make a resource importable, refer to [Extending Terraform: Resources — Import](/terraform/plugin/sdkv2/resources/import).
|
||||
|
||||
@@ -7,15 +7,15 @@ description: >-
|
||||
|
||||
# Import
|
||||
|
||||
> **Hands-on:** Try the [Import Terraform Configuration](https://learn.hashicorp.com/tutorials/terraform/state-import?in=terraform/state&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
> **Hands-on:** Try the [Import Terraform Configuration](/terraform/tutorials/state/state-import?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
|
||||
Terraform can import existing infrastructure resources. This functionality lets you bring existing resources under Terraform management.
|
||||
|
||||
~> **Warning:** Terraform expects that each remote object is bound to only one resource address. You should import each remote object to only one Terraform resource address. If you import the same object multiple times, Terraform may exhibit unwanted behavior. Refer to [State](/language/state) for more details.
|
||||
~> **Warning:** Terraform expects that each remote object is bound to only one resource address. You should import each remote object to only one Terraform resource address. If you import the same object multiple times, Terraform may exhibit unwanted behavior. Refer to [State](/terraform/language/state) for more details.
|
||||
|
||||
## State Only
|
||||
|
||||
Terraform import can only import resources into the [state](/language/state). Importing does not generate configuration.
|
||||
Terraform import can only import resources into the [state](/terraform/language/state). Importing does not generate configuration.
|
||||
|
||||
Before you run `terraform import` you must manually write a `resource` configuration block for the resource. The resource block describes where Terraform should map the imported object.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: The `terraform import` command is used to import existing infrastru
|
||||
|
||||
# Import Usage
|
||||
|
||||
> **Hands-on:** Try the [Import Terraform Configuration](https://learn.hashicorp.com/tutorials/terraform/state-import?in=terraform/state&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
> **Hands-on:** Try the [Import Terraform Configuration](/terraform/tutorials/state/state-import?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
|
||||
|
||||
Use the `terraform import` command to import existing infrastructure to Terraform state.
|
||||
@@ -18,7 +18,7 @@ itself having created all objects. If you import existing objects into Terraform
|
||||
be careful to import each remote object to only one Terraform resource address.
|
||||
If you import the same object multiple times, Terraform may exhibit unwanted
|
||||
behavior. For more information on this assumption, see
|
||||
[the State section](/language/state).
|
||||
[the State section](/terraform/language/state).
|
||||
|
||||
To import a resource, first write a resource block for it in your
|
||||
configuration, establishing the name by which it will be known to Terraform:
|
||||
@@ -52,7 +52,7 @@ Terraform state.
|
||||
|
||||
It is also possible to import to resources in child modules, using their paths,
|
||||
and to single instances of a resource with `count` or `for_each` set. See
|
||||
[_Resource Addressing_](/cli/state/resource-addressing) for more
|
||||
[_Resource Addressing_](/terraform/cli/state/resource-addressing) for more
|
||||
details on how to specify a target resource.
|
||||
|
||||
The syntax of the given ID is dependent on the resource type being imported.
|
||||
@@ -78,4 +78,4 @@ a `resource` block in configuration for each secondary resource. If this is
|
||||
not done, Terraform will plan to destroy the imported objects on the next run.
|
||||
|
||||
If you want to rename or otherwise move the imported resources, the
|
||||
[state management commands](/cli/commands/state) can be used.
|
||||
[state management commands](/terraform/cli/commands/state) can be used.
|
||||
|
||||
Reference in New Issue
Block a user