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

stacks: call terraform.Validate on stack component configs #34705

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

liamcervante
Copy link
Member

This PR updates the stacks validate functionality so that it calls out to terraform.Validate for each component within the stack.

We've updated the terraform1 API such that the deps file and provider cache handles are now required for the ValidateStackConfiguration RPC. Follow up PRs will update the various clients with this new behaviour. This is a forward-compatible change, so we can update the clients now before the new Terraform version is released and they'll continue working with the old version of Terraform. Unfortunately, this isn't backwards compatible so any clients not updated will start erroring when calling Terraform without the new validate fields.

We load the unconfigured providers in component_config.go, and pass them into the external providers supported by terraform.Validate (see #34701).

There are extra static validations we can do within stacks only that will arrive in follow up PRs.

Base automatically changed from liamcervante/external-provider-validate to main February 21, 2024 09:47
@liamcervante liamcervante force-pushed the liamcervante/stacks/validate-components branch from ff6851d to be21796 Compare February 21, 2024 09:48
@liamcervante liamcervante force-pushed the liamcervante/stacks/validate-components branch from be21796 to 68ab945 Compare February 21, 2024 09:53
@liamcervante liamcervante merged commit bced645 into main Feb 21, 2024
6 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/validate-components branch February 21, 2024 09:58
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants