GoogleCloudPlatform / pastures-poc-toolkit

Apache License 2.0
2 stars 2 forks source link

Support Data Fusion #6

Open dklanac opened 3 weeks ago

dklanac commented 3 weeks ago

Need networking support within the created sandbox project.

ashatune commented 2 weeks ago

I will fork the repo and add edits. The network config will require an update of the variables.tf file such as:

variable "cdf_network" { description = "The network to deploy CDF on" type = string }

variable "cdf_ip_range" { description = "The /22 CIDR range to deploy CDF on" type = string }

.. with variable mapping updated with specifics on these variables (ex. cdf_network = "default" cdf_ip_range = "172.28.76.0/22") as well as some entries regarding the CDF instance itself.

main.tf will be updated to call:

network_config { network = var.cdf_network ip_allocation = var.cdf_ip_range }

Sources: https://jtaras.medium.com/cloud-data-fusion-using-terraform-to-run-ephemeral-data-fusion-instances-8fef704d2011 & https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/data_fusion_instance

I will update here.