Skip to content

Commit

Permalink
Enable ephemeral values for variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpogran committed Aug 30, 2024
1 parent a94c529 commit 46d3204
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/schema/stacks/1.9/variable_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 46d3204

Please sign in to comment.