Open HongVietLE opened 5 days ago
Hi, I'm facing the same problem. I did debug it quickly and looks like when validation is first called, both IsDevelopmentMode
and ScalingSpec
values are unknown. Probably adding a check for skipping validation if ScalingSpec
is unknown would suffice, as subsequent validations will eventually have the value set.
Just adding !data.ScalingSpec.IsUnknown()
check on https://github.com/astronomer/terraform-provider-astro/blob/40a473711c32ea1410f693000b0a0feb6889a833/internal/provider/resources/resource_deployment.go#L876
and
https://github.com/astronomer/terraform-provider-astro/blob/40a473711c32ea1410f693000b0a0feb6889a833/internal/provider/resources/resource_deployment.go#L884
Description
I'm trying to create 2 astro deployments (dev and prod) using a variable
The behavior is the same when using a
for_each
loop on a set of stringSteps To Reproduce
Working ✅
Not working :x:
Output
Acceptance Criteria
No response
Anything else?
No response