env0 / terraform-provider-env0

Terraform Provider for env0

Home Page:https://env0.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

env0_environment resource allows you to bypass "required" terraform variables

away168 opened this issue · comments

Describe the bug
when using env0_environment resource with a required terraform variable in a workflow sub_environment

To Reproduce
Create a template with a variable marked as required.
Use the template in a workfllow
Create the workflow environment using env0_environment resource

Expected behavior
env0_environment should now allow a deployment.

Provider Version
1.16.0

Screenshots

CleanShot 2023-11-28 at 13 53 45

CleanShot 2023-11-28 at 13 54 16

Additional context

https://app.env0.com/p/6932f811-a7d0-4c8e-923c-3f2f285dacc3/environments/697b277a-95ca-425b-a42a-0fb984c67d00?tabname=deployment-logs

@away168 - wouldn't this be an issue with API/product itself?
Could you describe in more detail what the provider is doing wrong? maybe a small sample?

Thank you!

possibly an API / product issue - I don't really know.

The UI - will prevent the deployment because it sees a required variable.
So I guess it's being caught before the backend call. Need someone from RnD to help confirm.

@away168 this is indeed not an issue with the TF provider. If it's still relevant - please open a ticket to the backend team 🙏