This project contains Terraform configuration files to provision infrastructure components required to deploy SAS Viya platform products on Google Cloud
This provider has been deprecated in favor of the templatefile function since 2020, now would be a good time to make the swap before it's officially removed.
templatefile is already used in the OSS repo, so use that a reference
enable auto repair and upgrade with cluster autoscaling #1530
Small update will need to be made to the cluster_autoscalingline here in main.tf. It now requires the attributes auto_repair & auto_upgrade and their values, similarly to how we added a default for gpu_resources during the last module update
The default of these additions should be either true or false. We actually set those values in the node_pools map already based off whether the user set var.kubernetes_channelhere, so we can adopt the same behavior for cluster_autoscaling
Changes
Update the viya4-iac-gcp Providers, Modules, & Dependencies and Patch Security Issues
Below is notes and changes that I made as I upgraded the modules/providers.
Providers
hashicorp/google & hashicorp/google-beta
hashicorp/kubernetes
hashicorp/local
hashicorp/template
templatefile
function since 2020, now would be a good time to make the swap before it's officially removed.templatefile
is already used in the OSS repo, so use that a referencehashicorp/random
hashicorp/null
hashicorp/external
hashicorp/time
Modules
module.gke
cluster_autoscaling
line here in main.tf. It now requires the attributesauto_repair
&auto_upgrade
and their values, similarly to how we added a default forgpu_resources
during the last module updatevar.kubernetes_channel
here, so we can adopt the same behavior forcluster_autoscaling
module.postgresql
module.sql_proxy_sa
module.nat_address
module.cloud_nat
As part of updating the modules we are also going to set
When creating a postgres instances so we will no longer be blocked by pgadmin & the SharedServices database when trying to delete the Postgres resource. Fixes https://github.com/sassoftware/viya4-iac-gcp/issues/47
Tests
See internal ticket for additional details and security report.