From fcc63c84e9af87834bedf10714fe1b6d31ab49f4 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Mon, 12 Aug 2024 15:17:19 -0400 Subject: [PATCH] Enable ephemeral values for variable This change adds a new `ephemeral` field to the variable block schema. This is not true support for ephemeral values, but allows for validation of Stack files to pass. Actual support will come later. --- internal/schema/stacks/1.9/variable_block.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/schema/stacks/1.9/variable_block.go b/internal/schema/stacks/1.9/variable_block.go index d472977..536617b 100644 --- a/internal/schema/stacks/1.9/variable_block.go +++ b/internal/schema/stacks/1.9/variable_block.go @@ -42,6 +42,11 @@ func variableBlockSchema() *schema.BlockSchema { IsOptional: true, Description: lang.Markdown("Description to document the purpose of the variable and what value is expected"), }, + "ephemeral": { + Constraint: schema.LiteralType{Type: cty.Bool}, + IsOptional: true, + Description: lang.Markdown("Ephemeral values are not saved in the state file and are not visible in the UI"), + }, "type": { Constraint: schema.TypeDeclaration{}, IsOptional: true,