GCP: Composer Cluster IP Allocation Policy invalid on plan and apply #3695
Labels
bug
Something isn't working
pre-built providers
Issues around pre-built providers managed at https://github.com/hashicorp/cdktf-repository-manager
upstream/terraform-provider
depending upstream work on a Terraform provider
Expected Behavior
It should plan and apply without issue. This is the terraform resource Im using
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/composer_environment#nested_ip_allocation_policy_c2
Actual Behavior
When I set the composer node config to this, there is an error
It returns:
Converting it to an array will get past the synth, however a new error pops up
Will result in a successful synth, however during the plan phase it'll say that I am missing the values for other resources in that block. Which is weird because in the provider having all of those fields will result in a conflict (and manually adding them causes this conflict as well)
https://github.com/hashicorp/terraform-provider-google/blob/97596918928c1f6bccd6d53a10270f8465efe98a/google/services/composer/resource_composer_environment.go#L288-L344
I looked at the issue for this provider with vanilla TF, and they suggest to just use a single ip_allocation_policy, but there isn't a way to do this in cdktf, as just having a single ip allocation policy fails on the synth
Steps to Reproduce
Check actual behavior, contains relevant code
Versions
language: go
cdktf-cli: 0.20.8
node: v20.4.0
cdktf: 0.20.8
terraform: v1.7.0
This is what I can get since doing
cdktf debug
has another errorProviders
Running this command gives an error:
Gist
No response
Possible Solutions
N/A
Workarounds
Tried using an escape hatch, but that also gives an error
Anything Else?
No response
References
Related issue and suggested fix:
hashicorp/terraform-provider-google#15456
Created this PR to potentially fix
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: