-
Notifications
You must be signed in to change notification settings - Fork 278
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
'NoZeroValues' validation restricts conditional resources #238
Comments
Hi @ianmuscat! Rather than
Using the config below, I was able to successfully make the resource conditional based on the workspace:
Example output in default workspace:
Example output in prod workspace:
Please, let us know if this resolves the issue for you! |
@andrewsomething thank you very much for the clarification, this makes much more sense now 😄 |
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
digitalocean_database_cluster
Terraform Configuration Files
Expected Behaviour
Actual Behaviour
The
NoZeroValues
validation rule restricts this behaviour.Steps to Reproduce
terraform workspace new dev
terraform plan
Important Factoids
The example I am using above makes use of Terraform Workspaces, however, this could probably be applied to other scenarios too.
References
The text was updated successfully, but these errors were encountered: