Open gtupak opened 1 month ago
Hi @gtupak!
After creating a google_dataproc_cluster
with a cluster_config.gce_cluster_config.internal_ip_only = false
the result was successful without errors, even running a 2nd terraform apply the message was Your infrastructure matches the configuration
and checking in console for the created resource on dataproc clusters in the cluster configuration the Internal IP only property value was = No.
I suggest you check the same after running the terraform apply in the console to confirm if the value was set according to the terraform configuration.
Thank you for the prompt reply! I just tried again and got the same result. Are you sure you are specifying the image_version = "2.2"
? If I try the 2.1
version it works fine.
Confirmed issue!
With cluster_config.software_config.image_version = "2.2"
even if the code specifies the attribute cluster_config.gce_cluster_config.internal_ip_only = false
after terraform apply
in the Google Cloud console dataproc clusters, the created closter configuration Internal IP only
attribute appears with a value = Yes
Community Note
Terraform Version & Provider Version(s)
Terraform v1.5.2 on darwin_arm64
Affected Resource(s)
google_dataproc_cluster
Terraform Configuration
Debug Output
https://gist.github.com/gtupak/fccc66841bfbc79bc5b42431abe62318
Expected Behavior
The dataproc cluster should have been initialized with Internal IP Only to
false
as specified in the terraform config.Actual Behavior
The
internal_ip_only
config is ignored and the cluster has a private IP. This results in the inability to install 3rd party PyPI packages in the cluster.Steps to reproduce
terraform apply
Important Factoids
Starting from Dataproc v2.2, the clusters have private IP only turned on by default. See the release notes
References
No response
b/348680869