Skip to main content

Complex input variables for Spacelift templates

Our Terraform modules often use complex variable inputs of type list(object({})). Unfortunately it’s not possible to expose these complex types in our Spacelift templates.

A definition could be something like this:

inputs:
  - id: stacks
    name: Stacks
    description: Stacks that should be available to your Spacelift space
    type: list(object)
    schema:
      - id: name
        name: Name
        type: string
      
      - id: environment
        name: Environment
        type: select
        options:
          - dev
          - staging
          - prod
Problem
Status: 🔭 Discovery

Log in to comment and vote

No comments yet

Be the first to share your thoughts.