Skip to content

Commit d458f10

Browse files
committed
update 'Complete configuration' section
1 parent 98492c3 commit d458f10

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

content/terraform/v1.12.x/docs/language/block/import.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ The following `module` block includes all built-in arguments:
2626
```hcl
2727
import {
2828
to = resource.type.address
29-
id = "cloud-provider-id"
30-
for_each = { # `for_each` accepts a map or a set of strings
29+
id = "cloud-provider-id" # `id` is mutually exclusive with `identity`
30+
identity = { # `identity` is mutually exclusive with `id`
31+
<ATTRIBUTE> = <VALUE>
32+
}
33+
for_each = { # `for_each` accepts a map or a set of strings
3134
<KEY> = <VALUE>
3235
}
33-
for_each = [ # `for_each` accepts a map or a set of strings
36+
for_each = [ # `for_each` accepts a map or a set of strings
3437
"<VALUE>",
3538
"<VALUE>"
3639
]

content/terraform/v1.13.x/docs/language/block/import.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ The following `module` block includes all built-in arguments:
2626
```hcl
2727
import {
2828
to = resource.type.address
29-
id = "cloud-provider-id"
30-
for_each = { # `for_each` accepts a map or a set of strings
29+
id = "cloud-provider-id" # `id` is mutually exclusive with `identity`
30+
identity = { # `identity` is mutually exclusive with `id`
31+
<ATTRIBUTE> = <VALUE>
32+
}
33+
for_each = { # `for_each` accepts a map or a set of strings
3134
<KEY> = <VALUE>
3235
}
33-
for_each = [ # `for_each` accepts a map or a set of strings
36+
for_each = [ # `for_each` accepts a map or a set of strings
3437
"<VALUE>",
3538
"<VALUE>"
3639
]

0 commit comments

Comments
 (0)