From cfe6e5168a759c6bc2a846850771c7318dc11193 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Fri, 11 Mar 2022 13:06:28 +0100 Subject: [PATCH 1/2] Add type of resource id --- website/docs/cli/import/usage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/cli/import/usage.mdx b/website/docs/cli/import/usage.mdx index e5d448990..7610fa68a 100644 --- a/website/docs/cli/import/usage.mdx +++ b/website/docs/cli/import/usage.mdx @@ -46,7 +46,7 @@ resource configuration: $ terraform import aws_instance.example i-abcd1234 ``` -This command locates the AWS instance with ID `i-abcd1234`. Then it attaches +This command locates the AWS EC2 instance with ID `i-abcd1234`. Then it attaches the existing settings of the instance, as described by the EC2 API, to the name `aws_instance.example` of a module. In this example the module path implies that the root module is used. Finally, the mapping is saved in the From c847e6634f296d631b0488e3bbe6b018b7aff011 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Fri, 11 Mar 2022 13:07:28 +0100 Subject: [PATCH 2/2] Add type of resource id --- website/docs/cli/commands/import.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/cli/commands/import.mdx b/website/docs/cli/commands/import.mdx index ed2e5df9e..97476f66b 100644 --- a/website/docs/cli/commands/import.mdx +++ b/website/docs/cli/commands/import.mdx @@ -22,7 +22,7 @@ ADDRESS must be a valid [resource address](/cli/state/resource-addressing). Because any resource address is valid, the import command can import resources into modules as well as directly into the root of your state. -ID is dependent on the resource type being imported. For example, for AWS +ID is dependent on the resource type being imported. For example, for AWS EC2 instances it is the instance ID (`i-abcd1234`) but for AWS Route53 zones it is the zone ID (`Z12ABC4UGMOZ2N`). Please reference the provider documentation for details on the ID format. If you're unsure, feel free to just try an ID. If the ID