Difference between revisions of "Terraform function: tolist"
Jump to navigation
Jump to search
(Created page with " == Related terms == * splat * Error: Error in function call: "list" function was deprecated in Terraform v0.12 == See also == * {{Terraform}} Category:Terra...") |
|||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | * https://www.terraform.io/docs/language/functions/tolist.html | ||
+ | * <code>tolist</code> | ||
+ | |||
+ | resource "aws_identitystore_user" "example" { | ||
+ | [[identity_store_id]] = [[tolist]]([[data.]]aws_ssoadmin_instances.example.identity_store_ids)[0] | ||
+ | |||
+ | display_name = "John Doe" | ||
+ | user_name = "johndoe" | ||
+ | |||
+ | name { | ||
+ | given_name = "John" | ||
+ | family_name = "Doe" | ||
+ | } | ||
+ | |||
+ | emails { | ||
+ | value = "[email protected]" | ||
+ | } | ||
+ | } | ||
== Related terms == | == Related terms == | ||
− | * [[ | + | * [[Splat expression]] |
− | * [[Error: Error in function call]]: "list" function was deprecated in [[Terraform v0.12]] | + | * [[Error: Error in function call]]: "<code>list</code>" function was deprecated in [[Terraform v0.12]] |
+ | * <code>[[toset]]</code> | ||
+ | * [[Terraform variable types]] | ||
== See also == | == See also == | ||
− | * {{Terraform}} | + | * {{Terraform functions}} |
+ | |||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 16:35, 27 February 2023
tolist
resource "aws_identitystore_user" "example" { identity_store_id = tolist(data.aws_ssoadmin_instances.example.identity_store_ids)[0] display_name = "John Doe" user_name = "johndoe" name { given_name = "John" family_name = "Doe" } emails { value = "[email protected]" } }
Related terms[edit]
- Splat expression
- Error: Error in function call: "
list
" function was deprecated in Terraform v0.12 toset
- Terraform variable types
See also[edit]
Advertising: