mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix typo.
This commit is contained in:
parent
a074b33bcf
commit
56ec897a84
@ -66,14 +66,18 @@ desirable to parameterize a module's resource with an attribute that is of the
|
|||||||
list type, for example `aws_instance.security_groups`.
|
list type, for example `aws_instance.security_groups`.
|
||||||
|
|
||||||
Until a future release broadens the functionality of variables to include list
|
Until a future release broadens the functionality of variables to include list
|
||||||
types, the way to work around this limitation is to use the [`split` and
|
types, the way to work around this limitation is to pass a delimited string as
|
||||||
`join`](/docs/configuration/interpolation.html) string interpolation functions
|
a module parameter, and then "unpack" that parameter using
|
||||||
to pass a delimited string as a module parameter, and then "unpack" that
|
[`split`](/docs/configuration/interpolation.html) interpolation function within
|
||||||
parameter using `split` within the module definition.
|
the module definition.
|
||||||
|
|
||||||
Depending on the resource parameter in question, you may have to
|
Depending on the resource parameter in question, you may have to
|
||||||
indicate that the unpacked string is actually a list but using the
|
indicate that the unpacked string is actually a list by using list notation.
|
||||||
`resource_param = ["${split(",", var.CSV_STRING)}"]` notation.
|
For example:
|
||||||
|
|
||||||
|
```
|
||||||
|
resource_param = ["${split(",", var.CSV_STRING)}"]
|
||||||
|
```
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user