Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input block schema and deprecate variable block #381

Closed
wants to merge 1 commit into from

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Aug 2, 2024

This commit adds the schema for the input block in a stack configuration file and deprecates the variable block.

The variable block has been replaced with the input block. The input block allows users to customize aspects of the stack that differ between deployments.

This commit adds the schema for the `input` block in a stack configuration file and deprecates the `variable` block.

The `variable` block has been replaced with the `input` block. The `input` block allows users to customize aspects of the stack that differ between deployments.
@jpogran jpogran self-assigned this Aug 2, 2024
@jpogran jpogran marked this pull request as ready for review August 2, 2024 18:04
@jpogran jpogran requested a review from a team as a code owner August 2, 2024 18:04
Copy link
Member

@ansgarm ansgarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least from the latest examples it seems to me like variable blocks still exist – or did I miss anything?

Comment on lines +18 to +21
bs.Blocks["variable"].IsDeprecated = true
bs.Blocks["variable"].Description = lang.Markdown("The `variables` attribute has been replaced with the `inputs` attribute. Please update the configuration to use `inputs` instead of `variables`, as support for the `variables` attribute will be removed entirely before the final release of Terraform Stacks.")

bs.Blocks["input"] = inputBlockSchema()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I don't think that's correct – The block used to declare inputs is still called variable (as per Liams latest branch updating the syntax).

We'd need to deprecate & update the variables and inputs attributes within component and deployment blocks instead

@jpogran jpogran marked this pull request as draft August 5, 2024 15:04
@jpogran jpogran closed this Aug 5, 2024
@jpogran jpogran deleted the add_input_deprecate_variable branch September 23, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants