github.com/replicatedcom/ship@v0.50.0/integration/init/skipped-terraform/input/ship.yaml (about)

     1  assets:
     2    v1:
     3      - inline:
     4          dest: ./notrun-terraform/random.tf
     5          contents: |
     6            resource "local_file" "foo" {
     7              content     = "{{repl ConfigOption "id_length" }}"
     8              filename = "/tmp/foo.bar"
     9            }
    10  
    11      - inline:
    12          dest: ./terraform/random.tf
    13          contents: |
    14            resource "local_file" "foo" {
    15              content     = "{{repl ConfigOption "id_length" }}"
    16              filename = "/tmp/foo.bar"
    17            }
    18  
    19  config:
    20    v1:
    21      - name: id
    22        items:
    23          - name: id_length
    24            title: a silly example
    25            type: text
    26            required: true
    27            default: 8
    28            help_text: "if set to 6 terraform will run"
    29  
    30  lifecycle:
    31    v1:
    32      - message:
    33          contents: "hi"
    34      - config: {}
    35      - render: {}
    36      - terraform:
    37          path: notrun-terraform/
    38          when: '{{repl ConfigOptionEquals "id_length" "6"}}'
    39      - terraform:
    40          path: terraform/
    41          when: '{{repl ConfigOptionEquals "id_length" "8"}}'
    42      - message:
    43          contents: "bye"