Merge pull request #30653 from thetillhoff/main
Clearify which type of id is used in the documentation
This commit is contained in:
commit
e6ff13661d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue