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

feat: forbid nullable codebuild variables, to use default variables on null #158

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

Marcel2603
Copy link
Contributor

Currently, you can use "null" for the value of the codebuild-variables. If you do that, you will receive an error from the underlying module.

In order to fix this, I've set the variables to nullable=false which should protect you from this error.

If you paste null, then the default value will be used (source: https://developer.hashicorp.com/terraform/language/values/variables#disallowing-null-input-values)

@Marcel2603 Marcel2603 changed the title Forbid nullable codebuild variables, to use default variables on null feature: Forbid nullable codebuild variables, to use default variables on null Oct 9, 2024
@Marcel2603 Marcel2603 changed the title feature: Forbid nullable codebuild variables, to use default variables on null feat: Forbid nullable codebuild variables, to use default variables on null Oct 9, 2024
@Marcel2603 Marcel2603 changed the title feat: Forbid nullable codebuild variables, to use default variables on null feat: forbid nullable codebuild variables, to use default variables on null Oct 9, 2024
@Marcel2603 Marcel2603 merged commit b6ab70b into stroeer:main Oct 9, 2024
3 checks passed
@Marcel2603 Marcel2603 deleted the feature/enforce-default-values branch October 9, 2024 07:57
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