Merge pull request #30653 from thetillhoff/main

Clearify which type of id is used in the documentation
This commit is contained in:
Craig Wright 2022-03-11 10:45:17 -08:00 committed by GitHub
commit e6ff13661d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 Because any resource address is valid, the import command can import resources
into modules as well as directly into the root of your state. 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 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 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 on the ID format. If you're unsure, feel free to just try an ID. If the ID

View File

@ -46,7 +46,7 @@ resource configuration:
$ terraform import aws_instance.example i-abcd1234 $ 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 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 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 implies that the root module is used. Finally, the mapping is saved in the