From 429c835fced9f46325e13588e79921c0ebe7f769 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 11:50:38 +0530 Subject: [PATCH 1/8] chore: test setup --- gcp/dev/vm3/main.tf | 2 +- gcp/dev/vm3/varaibles.tf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 gcp/dev/vm3/varaibles.tf diff --git a/gcp/dev/vm3/main.tf b/gcp/dev/vm3/main.tf index 4018fb955..4927ca0c1 100644 --- a/gcp/dev/vm3/main.tf +++ b/gcp/dev/vm3/main.tf @@ -1,5 +1,5 @@ resource "random_string" "random" { - length = 16 + length = var.length special = true override_special = "/@£$" } diff --git a/gcp/dev/vm3/varaibles.tf b/gcp/dev/vm3/varaibles.tf new file mode 100644 index 000000000..da06ea8a4 --- /dev/null +++ b/gcp/dev/vm3/varaibles.tf @@ -0,0 +1,3 @@ +variable "length" { + default = 16 +} \ No newline at end of file From b471f1faf819dbf54e53770515f06019dd6bce18 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 11:56:20 +0530 Subject: [PATCH 2/8] add description and type --- gcp/dev/vm3/varaibles.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcp/dev/vm3/varaibles.tf b/gcp/dev/vm3/varaibles.tf index da06ea8a4..3e5b4b291 100644 --- a/gcp/dev/vm3/varaibles.tf +++ b/gcp/dev/vm3/varaibles.tf @@ -1,3 +1,5 @@ variable "length" { - default = 16 + description = "The length of the random string to generate" + default = 16 + type = number } \ No newline at end of file From b3594b9e8226c5b8ec14ef47407d95a4a791474b Mon Sep 17 00:00:00 2001 From: "codimite-tfaction[bot]" <150921342+codimite-tfaction[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 06:27:41 +0000 Subject: [PATCH 3/8] style: terraform fmt -recursive --- gcp/dev/vm3/varaibles.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcp/dev/vm3/varaibles.tf b/gcp/dev/vm3/varaibles.tf index 3e5b4b291..b7d3f8775 100644 --- a/gcp/dev/vm3/varaibles.tf +++ b/gcp/dev/vm3/varaibles.tf @@ -1,5 +1,5 @@ variable "length" { - description = "The length of the random string to generate" - default = 16 - type = number + description = "The length of the random string to generate" + default = 16 + type = number } \ No newline at end of file From 18d564beb88651ff72db8ee387c0702ba15073a7 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 12:08:37 +0530 Subject: [PATCH 4/8] update values --- gcp/dev/vm3/varaibles.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/dev/vm3/varaibles.tf b/gcp/dev/vm3/varaibles.tf index b7d3f8775..c40c2c224 100644 --- a/gcp/dev/vm3/varaibles.tf +++ b/gcp/dev/vm3/varaibles.tf @@ -1,5 +1,5 @@ variable "length" { description = "The length of the random string to generate" - default = 16 + default = 10 type = number } \ No newline at end of file From 170f1eb9b1ef3ea83e858d336fddda8fbec36957 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 12:11:56 +0530 Subject: [PATCH 5/8] update main.tf --- gcp/dev/vm3/main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/gcp/dev/vm3/main.tf b/gcp/dev/vm3/main.tf index 4927ca0c1..c390971c9 100644 --- a/gcp/dev/vm3/main.tf +++ b/gcp/dev/vm3/main.tf @@ -2,6 +2,7 @@ resource "random_string" "random" { length = var.length special = true override_special = "/@£$" + lower = false } From 834e2c8206117324c80d8217ef66b58348221bae Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 14:39:48 +0530 Subject: [PATCH 6/8] add folders --- tfaction-root.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tfaction-root.yaml b/tfaction-root.yaml index 6a3cf92c3..2d9a4e0c0 100644 --- a/tfaction-root.yaml +++ b/tfaction-root.yaml @@ -26,6 +26,9 @@ target_groups: - working_directory: gcp/dev/ target: gcp/dev/ template_dir: templates/gcp +- working_directory: gcp/networking/ + target: gcp/networking/ + 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 From f7e2b830d2974035725a67cc0e60d46c10465797 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 14:43:23 +0530 Subject: [PATCH 7/8] add templates/networking directory for workflow dispatch --- tfaction-root.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/tfaction-root.yaml b/tfaction-root.yaml index 2d9a4e0c0..bfcd6bf73 100644 --- a/tfaction-root.yaml +++ b/tfaction-root.yaml @@ -29,6 +29,7 @@ target_groups: - working_directory: gcp/networking/ target: gcp/networking/ 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 From c25983edd0f37a1063fceff058f497375ae08f56 Mon Sep 17 00:00:00 2001 From: Nimesha-Premaraja Date: Mon, 27 Nov 2023 14:47:46 +0530 Subject: [PATCH 8/8] update target --- tfaction-root.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfaction-root.yaml b/tfaction-root.yaml index bfcd6bf73..2274b8e32 100644 --- a/tfaction-root.yaml +++ b/tfaction-root.yaml @@ -27,9 +27,9 @@ target_groups: target: gcp/dev/ template_dir: templates/gcp - working_directory: gcp/networking/ - target: 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