diff --git a/gcp/dev/vm3/main.tf b/gcp/dev/vm3/main.tf index 4018fb955..c390971c9 100644 --- a/gcp/dev/vm3/main.tf +++ b/gcp/dev/vm3/main.tf @@ -1,7 +1,8 @@ resource "random_string" "random" { - length = 16 + length = var.length special = true override_special = "/@£$" + lower = false } diff --git a/gcp/dev/vm3/varaibles.tf b/gcp/dev/vm3/varaibles.tf new file mode 100644 index 000000000..c40c2c224 --- /dev/null +++ b/gcp/dev/vm3/varaibles.tf @@ -0,0 +1,5 @@ +variable "length" { + description = "The length of the random string to generate" + default = 10 + type = number +} \ No newline at end of file diff --git a/tfaction-root.yaml b/tfaction-root.yaml index 6a3cf92c3..2274b8e32 100644 --- a/tfaction-root.yaml +++ b/tfaction-root.yaml @@ -26,6 +26,10 @@ target_groups: - working_directory: gcp/dev/ target: gcp/dev/ template_dir: templates/gcp +- working_directory: gcp/networking/ + target: gcp/dev/ + template_dir: templates/networking + # terraform_plan_config: # gcp_service_account: terraform-plan@example.iam.gserviceaccount.com # gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction