From 5c1de7ace8fbe6df27b5c1ae6e103ef36ae88ce3 Mon Sep 17 00:00:00 2001 From: Ulad Kasach Date: Tue, 3 Sep 2024 02:56:51 -0400 Subject: [PATCH] fix(tf): split terraform common, aws, and github --- .../best-practice/provision/aws/environments/dev/main.tf | 0 .../best-practice/provision/aws/environments/dev/versions.tf | 0 .../best-practice/provision/aws/environments/prod/main.tf | 0 .../best-practice/provision/aws/environments/prod/versions.tf | 0 .../best-practice/provision/aws/environments/test/main.tf | 0 .../best-practice/provision/aws/environments/test/versions.tf | 0 .../best-practice/provision/aws/product/variables.tf | 0 .../bad-practices/terraform-dir/.declapract.readme.md | 0 .../terraform-dir/provision/terraform/**/*.hcl.declapract.ts | 0 .../terraform-dir/provision/terraform/**/*.tf.declapract.ts | 0 .../provision/terraform/**/.gitignore.declapract.ts | 0 .../best-practice/.terraform-version | 0 .../best-practice/package.json | 0 .../best-practice/package.json.declapract.ts | 0 .../provision/github/environment/import-existing-repo.sh | 0 .../best-practice/provision/github/environment/main.tf | 0 .../best-practice/provision/github/environment/versions.tf | 0 .../best-practice/provision/github/product/repository.tf | 0 src/useCases.yml | 4 +++- 19 files changed, 3 insertions(+), 1 deletion(-) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/dev/main.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/dev/versions.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/prod/main.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/prod/versions.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/test/main.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/environments/test/versions.tf (100%) rename src/practices/{terraform => terraform-aws}/best-practice/provision/aws/product/variables.tf (100%) rename src/practices/{terraform => terraform-common}/bad-practices/terraform-dir/.declapract.readme.md (100%) rename src/practices/{terraform => terraform-common}/bad-practices/terraform-dir/provision/terraform/**/*.hcl.declapract.ts (100%) rename src/practices/{terraform => terraform-common}/bad-practices/terraform-dir/provision/terraform/**/*.tf.declapract.ts (100%) rename src/practices/{terraform => terraform-common}/bad-practices/terraform-dir/provision/terraform/**/.gitignore.declapract.ts (100%) rename src/practices/{terraform => terraform-common}/best-practice/.terraform-version (100%) rename src/practices/{terraform => terraform-common}/best-practice/package.json (100%) rename src/practices/{terraform => terraform-common}/best-practice/package.json.declapract.ts (100%) rename src/practices/{terraform => terraform-github}/best-practice/provision/github/environment/import-existing-repo.sh (100%) rename src/practices/{terraform => terraform-github}/best-practice/provision/github/environment/main.tf (100%) rename src/practices/{terraform => terraform-github}/best-practice/provision/github/environment/versions.tf (100%) rename src/practices/{terraform => terraform-github}/best-practice/provision/github/product/repository.tf (100%) diff --git a/src/practices/terraform/best-practice/provision/aws/environments/dev/main.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/dev/main.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/dev/main.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/dev/main.tf diff --git a/src/practices/terraform/best-practice/provision/aws/environments/dev/versions.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/dev/versions.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/dev/versions.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/dev/versions.tf diff --git a/src/practices/terraform/best-practice/provision/aws/environments/prod/main.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/prod/main.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/prod/main.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/prod/main.tf diff --git a/src/practices/terraform/best-practice/provision/aws/environments/prod/versions.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/prod/versions.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/prod/versions.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/prod/versions.tf diff --git a/src/practices/terraform/best-practice/provision/aws/environments/test/main.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/test/main.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/test/main.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/test/main.tf diff --git a/src/practices/terraform/best-practice/provision/aws/environments/test/versions.tf b/src/practices/terraform-aws/best-practice/provision/aws/environments/test/versions.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/environments/test/versions.tf rename to src/practices/terraform-aws/best-practice/provision/aws/environments/test/versions.tf diff --git a/src/practices/terraform/best-practice/provision/aws/product/variables.tf b/src/practices/terraform-aws/best-practice/provision/aws/product/variables.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/aws/product/variables.tf rename to src/practices/terraform-aws/best-practice/provision/aws/product/variables.tf diff --git a/src/practices/terraform/bad-practices/terraform-dir/.declapract.readme.md b/src/practices/terraform-common/bad-practices/terraform-dir/.declapract.readme.md similarity index 100% rename from src/practices/terraform/bad-practices/terraform-dir/.declapract.readme.md rename to src/practices/terraform-common/bad-practices/terraform-dir/.declapract.readme.md diff --git a/src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/*.hcl.declapract.ts b/src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/*.hcl.declapract.ts similarity index 100% rename from src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/*.hcl.declapract.ts rename to src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/*.hcl.declapract.ts diff --git a/src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/*.tf.declapract.ts b/src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/*.tf.declapract.ts similarity index 100% rename from src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/*.tf.declapract.ts rename to src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/*.tf.declapract.ts diff --git a/src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/.gitignore.declapract.ts b/src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/.gitignore.declapract.ts similarity index 100% rename from src/practices/terraform/bad-practices/terraform-dir/provision/terraform/**/.gitignore.declapract.ts rename to src/practices/terraform-common/bad-practices/terraform-dir/provision/terraform/**/.gitignore.declapract.ts diff --git a/src/practices/terraform/best-practice/.terraform-version b/src/practices/terraform-common/best-practice/.terraform-version similarity index 100% rename from src/practices/terraform/best-practice/.terraform-version rename to src/practices/terraform-common/best-practice/.terraform-version diff --git a/src/practices/terraform/best-practice/package.json b/src/practices/terraform-common/best-practice/package.json similarity index 100% rename from src/practices/terraform/best-practice/package.json rename to src/practices/terraform-common/best-practice/package.json diff --git a/src/practices/terraform/best-practice/package.json.declapract.ts b/src/practices/terraform-common/best-practice/package.json.declapract.ts similarity index 100% rename from src/practices/terraform/best-practice/package.json.declapract.ts rename to src/practices/terraform-common/best-practice/package.json.declapract.ts diff --git a/src/practices/terraform/best-practice/provision/github/environment/import-existing-repo.sh b/src/practices/terraform-github/best-practice/provision/github/environment/import-existing-repo.sh similarity index 100% rename from src/practices/terraform/best-practice/provision/github/environment/import-existing-repo.sh rename to src/practices/terraform-github/best-practice/provision/github/environment/import-existing-repo.sh diff --git a/src/practices/terraform/best-practice/provision/github/environment/main.tf b/src/practices/terraform-github/best-practice/provision/github/environment/main.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/github/environment/main.tf rename to src/practices/terraform-github/best-practice/provision/github/environment/main.tf diff --git a/src/practices/terraform/best-practice/provision/github/environment/versions.tf b/src/practices/terraform-github/best-practice/provision/github/environment/versions.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/github/environment/versions.tf rename to src/practices/terraform-github/best-practice/provision/github/environment/versions.tf diff --git a/src/practices/terraform/best-practice/provision/github/product/repository.tf b/src/practices/terraform-github/best-practice/provision/github/product/repository.tf similarity index 100% rename from src/practices/terraform/best-practice/provision/github/product/repository.tf rename to src/practices/terraform-github/best-practice/provision/github/product/repository.tf diff --git a/src/useCases.yml b/src/useCases.yml index b5d8d1b..cdb3a78 100644 --- a/src/useCases.yml +++ b/src/useCases.yml @@ -40,7 +40,9 @@ use-cases: - node-service - runtime-type-checking - serverless - - terraform + - terraform-common + - terraform-github + - terraform-aws - tests-service - uuid lambda-service-with-rds: