github.com/hashicorp/packer@v1.14.3/hcl2template/testdata/datasources/basic.pkr.hcl (about)

     1  data "amazon-ami" "test" {
     2    string   = "string"
     3    int      = 42
     4    int64    = 43
     5    bool     = true
     6    trilean  = true
     7    duration = "10s"
     8    map_string_string = {
     9      a = "b"
    10      c = "d"
    11    }
    12    slice_string = [
    13      "a",
    14      "b",
    15      "c",
    16    ]
    17    slice_slice_string = [
    18      ["a","b"],
    19      ["c","d"]
    20    ]
    21  
    22    nested {
    23      string   = "string"
    24      int      = 42
    25      int64    = 43
    26      bool     = true
    27      trilean  = true
    28      duration = "10s"
    29      map_string_string = {
    30        a = "b"
    31        c = "d"
    32      }
    33      slice_string = [
    34        "a",
    35        "b",
    36        "c",
    37      ]
    38      slice_slice_string = [
    39        ["a","b"],
    40        ["c","d"]
    41      ]
    42    }
    43  
    44    nested_slice {
    45      string   = "string"
    46      int      = 42
    47      int64    = 43
    48      bool     = true
    49      trilean  = true
    50      duration = "10s"
    51      map_string_string = {
    52        a = "b"
    53        c = "d"
    54      }
    55      slice_string = [
    56        "a",
    57        "b",
    58        "c",
    59      ]
    60      slice_slice_string = [
    61        ["a","b"],
    62        ["c","d"]
    63      ]
    64    }
    65  
    66    nested_slice {
    67      string   = "string"
    68      int      = 42
    69      int64    = 43
    70      bool     = true
    71      trilean  = true
    72      duration = "10s"
    73      map_string_string = {
    74        a = "b"
    75        c = "d"
    76      }
    77      slice_string = [
    78        "a",
    79        "b",
    80        "c",
    81      ]
    82      slice_slice_string = [
    83        ["a","b"],
    84        ["c","d"]
    85      ]
    86    }
    87  }
    88  
    89  source "null" "test" {
    90    communicator = "none"
    91  }
    92  
    93  build {
    94    sources = ["null.test"]
    95  }