Difference between revisions of "Terraform function: tolist"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
  resource "aws_identitystore_user" "example" {
 
  resource "aws_identitystore_user" "example" {
   [[identity_store_id]] = [[tolist]](data.aws_ssoadmin_instances.example.identity_store_ids)[0]
+
   [[identity_store_id]] = [[tolist]]([[data.]]aws_ssoadmin_instances.example.identity_store_ids)[0]
 
   
 
   
 
   display_name = "John Doe"
 
   display_name = "John Doe"
Line 28: Line 28:
 
== See also ==
 
== See also ==
 
* {{Terraform functions}}
 
* {{Terraform functions}}
* {{Terraform}}
+
 
  
 
[[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]

See also[edit]

Advertising: