Created
          January 29, 2024 13:46 
        
      - 
      
- 
        Save matt-FFFFFF/21b22b91944a566ddfe157728ca92444 to your computer and use it in GitHub Desktop. 
    Terraform data types
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | locals { | |
| my_string = "Hello World!" | |
| my_empty_string = "" | |
| my_number_as_string = "1234" | |
| my_bool = true | |
| my_number = 1234 | |
| my_number_2 = 12.34 | |
| my_list = ["Hello", "World", "!"] | |
| my_set_of_strings = toset(["Hello", "World", "!"]) | |
| my_nested_list = [ | |
| ["Hello", "World", "!"], | |
| ["Goodbye", "World", "!"] | |
| ] | |
| my_empty_list = [] | |
| my_null = null | |
| my_object = { | |
| key1 = "value1" | |
| key2 = "value2" | |
| } | |
| my_list_of_objects = [ | |
| { | |
| key1 = "value1" | |
| key2 = "value2" | |
| }, | |
| { | |
| key1 = "valueA" | |
| key2 = "valueB" | |
| } | |
| ] | |
| my_map_of_objects = { | |
| one = { | |
| key1 = "value1" | |
| key2 = "value2" | |
| } | |
| two = { | |
| key1 = "valueA" | |
| key2 = "valueB" | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment