From 4448f352944cc9b8f8bfc82c902bbbee8c51c9f6 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 14:32:19 +0000 Subject: [PATCH 01/11] module version and creation of multiple repositories conforming to moj standards --- terraform/github/repositories/github-repos.tf | 102 ++++++++++++++++-- 1 file changed, 93 insertions(+), 9 deletions(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index 3fcdeac59..edc4f73f0 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -1,13 +1,97 @@ -module "repository" { +locals { + operations_engineering_repositories = { - source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" + "test-repository-levg1" = { + name = "test-repository-levg1" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + } + + "test-repository-levg2" = { + name = "test-repository-levg2" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + } + + "test-repository-levg3" = { + name = "test-repository-levg3" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + } - application_name = "test-app-levg" - description = "this repository was create by terraform managed by operations-engineering team" - name = "test-repository-levg" - tags = { - Team = "operations-engineering" - Phase = "POC" } - topics = ["github", "terraform", "operations-engineering"] +} + +module "operations_engineering_repositories" { + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" + version = "0.0.1" + + for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } + + name = each.value.name + description = each.value.description + topics = lookup(each.value, "topics", []) + visibility = lookup(each.value, "visibility", "public") + + archived = lookup(each.value, "archived", false) + archive_on_destroy = lookup(each.value, "archive_on_destroy", true) + + is_template = lookup(each.value, "is_template", false) + + use_template = lookup(each.value, "use_template", true) + template_repository = lookup(each.value, "template_repository", "template-repository") + has_discussions = lookup(each.value, "has_discussions", false) + has_downloads = lookup(each.value, "has_downloads", false) + has_issues = lookup(each.value, "has_issues", true) + has_projects = lookup(each.value, "has_projects", false) + has_wiki = lookup(each.value, "has_wiki", false) + + vulnerability_alerts = lookup(each.value, "vulnerability_alerts", true) + + auto_init = lookup(each.value, "auto_init", true) + + allow_merge_commit = lookup(each.value, "allow_merge_commit", false) + merge_commit_title = lookup(each.value, "merge_commit_title", "MERGE_MESSAGE") + merge_commit_message = lookup(each.value, "merge_commit_message", "PR_TITLE") + + allow_squash_merge = lookup(each.value, "allow_squash_merge", true) + squash_merge_commit_title = lookup(each.value, "squash_merge_commit_title", "PR_TITLE") + squash_merge_commit_message = lookup(each.value, "squash_merge_commit_message", "COMMIT_MESSAGES") + + allow_update_branch = lookup(each.value, "allow_update_branch", true) + allow_auto_merge = lookup(each.value, "allow_auto_merge", false) + allow_rebase_merge = lookup(each.value, "allow_rebase_merge", true) + delete_branch_on_merge = lookup(each.value, "delete_branch_on_merge", true) + + pages_enabled = lookup(each.value, "pages_enabled", false) + pages_configuration = lookup(each.value, "pages_configuration", null) + + advanced_security_status = lookup(each.value, "advanced_security_status", "enabled") + secret_scanning_status = lookup(each.value, "secret_scanning_status", "enabled") + secret_scanning_push_protection_status = lookup(each.value, "secret_scanning_push_protection_status", "enabled") + + dependabot_security_updates_enabled = lookup(each.value, "dependabot_security_updates_enabled", true) + + branch_protection_pattern = lookup(each.value, "branch_protection_pattern", "main") + branch_protection_allows_deletions = lookup(each.value, "branch_protection_allows_deletions", false) + branch_protection_enforce_admins = lookup(each.value, "branch_protection_enforce_admins", true) + branch_protection_force_push_bypassers = lookup(each.value, "branch_protection_force_push_bypassers", []) + branch_protection_push_restrictions = lookup(each.value, "branch_protection_push_restrictions", []) + branch_protection_require_signed_commits = lookup(each.value, "branch_protection_require_signed_commits", false) + branch_protection_required_linear_history = lookup(each.value, "branch_protection_required_linear_history", false) + branch_protection_require_conversation_resolution = lookup(each.value, "branch_protection_require_conversation_resolution", true) + branch_protection_allows_force_pushes = lookup(each.value, "branch_protection_allows_force_pushes", false) + branch_protection_blocks_creations = lookup(each.value, "branch_protection_blocks_creations", false) + branch_protection_lock_branch = lookup(each.value, "branch_protection_lock_branch", false) + branch_protection_required_pull_request_reviews_dismiss_stale_reviews = lookup(each.value, "branch_protection_required_pull_request_reviews_dismiss_stale_reviews", true) + branch_protection_required_pull_request_reviews_restrict_dismissals = lookup(each.value, "branch_protection_required_pull_request_reviews_restrict_dismissals", false) + branch_protection_required_pull_request_reviews_dismissal_restrictions = lookup(each.value, "branch_protection_required_pull_request_reviews_dismissal_restrictions", []) + branch_protection_required_pull_request_reviews_pull_request_bypassers = lookup(each.value, "branch_protection_required_pull_request_reviews_pull_request_bypassers", []) + branch_protection_required_pull_request_reviews_require_code_owner_reviews = lookup(each.value, "branch_protection_required_pull_request_reviews_require_code_owner_reviews", true) + branch_protection_required_pull_request_reviews_require_last_push_approval = lookup(each.value, "branch_protection_required_pull_request_reviews_require_last_push_approval", true) + branch_protection_required_pull_request_reviews_required_approving_review_count = lookup(each.value, "branch_protection_required_pull_request_reviews_required_approving_review_count", 1) + branch_protection_required_status_checks_strict = lookup(each.value, "branch_protection_required_status_checks_strict", true) + branch_protection_required_status_checks_contexts = lookup(each.value, "branch_protection_required_status_checks_contexts", []) + + access = lookup(each.value, "access", null) } \ No newline at end of file From 9136a5e555a0a8e49e253adedcb9d6654d4d51d4 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 14:37:49 +0000 Subject: [PATCH 02/11] rename repository --- terraform/github/repositories/github-repos.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index edc4f73f0..51ce1b1a2 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -2,7 +2,7 @@ locals { operations_engineering_repositories = { "test-repository-levg1" = { - name = "test-repository-levg1" + name = "test-repository-levg" description = "this repository was create by terraform managed by operations-engineering team" topics = ["github", "terraform", "operations-engineering"] } From 8f25a5ed89a9ae5384af6483d588079d72f67cc4 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 14:46:09 +0000 Subject: [PATCH 03/11] specify release in module source url --- terraform/github/repositories/github-repos.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index 51ce1b1a2..3533a853f 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -23,8 +23,7 @@ locals { } module "operations_engineering_repositories" { - source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" - version = "0.0.1" + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories/releases/0.0.1" for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } From d4466a2ddf796edaea7c6f0cb12cc6a81b0ee755 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 14:50:07 +0000 Subject: [PATCH 04/11] different way of specifying release in module url --- terraform/github/repositories/github-repos.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index 3533a853f..00a5653eb 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -23,7 +23,7 @@ locals { } module "operations_engineering_repositories" { - source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories/releases/0.0.1" + source = "https://github.com/ministryofjustice/operations-engineering-terraform-github-repositories/tree/0.0.1" for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } From 707e74845f293d49211973c92d7837381cee7024 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 14:51:33 +0000 Subject: [PATCH 05/11] remove terraform module version --- terraform/github/repositories/github-repos.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index 00a5653eb..0eb54524d 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -23,7 +23,7 @@ locals { } module "operations_engineering_repositories" { - source = "https://github.com/ministryofjustice/operations-engineering-terraform-github-repositories/tree/0.0.1" + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } From 13cf76fadc1bcfaa464777b06a84512deb762abf Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:05:46 +0000 Subject: [PATCH 06/11] remove default variables that are included in module and add application_name default variable --- terraform/github/repositories/github-repos.tf | 86 +++++-------------- 1 file changed, 20 insertions(+), 66 deletions(-) diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf index 0eb54524d..f8ef29598 100644 --- a/terraform/github/repositories/github-repos.tf +++ b/terraform/github/repositories/github-repos.tf @@ -1,22 +1,37 @@ locals { operations_engineering_repositories = { - "test-repository-levg1" = { + "test-repository-levg" = { name = "test-repository-levg" + application_name = "test-repository-levg" description = "this repository was create by terraform managed by operations-engineering team" topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } } "test-repository-levg2" = { name = "test-repository-levg2" + application_name = "test-repository-levg2" description = "this repository was create by terraform managed by operations-engineering team" topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } } "test-repository-levg3" = { name = "test-repository-levg3" + application_name = "test-repository-levg3" description = "this repository was create by terraform managed by operations-engineering team" topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } } } @@ -27,70 +42,9 @@ module "operations_engineering_repositories" { for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } - name = each.value.name + name = each.value.name + application_name = each.value.application_name description = each.value.description - topics = lookup(each.value, "topics", []) - visibility = lookup(each.value, "visibility", "public") - - archived = lookup(each.value, "archived", false) - archive_on_destroy = lookup(each.value, "archive_on_destroy", true) - - is_template = lookup(each.value, "is_template", false) - - use_template = lookup(each.value, "use_template", true) - template_repository = lookup(each.value, "template_repository", "template-repository") - has_discussions = lookup(each.value, "has_discussions", false) - has_downloads = lookup(each.value, "has_downloads", false) - has_issues = lookup(each.value, "has_issues", true) - has_projects = lookup(each.value, "has_projects", false) - has_wiki = lookup(each.value, "has_wiki", false) - - vulnerability_alerts = lookup(each.value, "vulnerability_alerts", true) - - auto_init = lookup(each.value, "auto_init", true) - - allow_merge_commit = lookup(each.value, "allow_merge_commit", false) - merge_commit_title = lookup(each.value, "merge_commit_title", "MERGE_MESSAGE") - merge_commit_message = lookup(each.value, "merge_commit_message", "PR_TITLE") - - allow_squash_merge = lookup(each.value, "allow_squash_merge", true) - squash_merge_commit_title = lookup(each.value, "squash_merge_commit_title", "PR_TITLE") - squash_merge_commit_message = lookup(each.value, "squash_merge_commit_message", "COMMIT_MESSAGES") - - allow_update_branch = lookup(each.value, "allow_update_branch", true) - allow_auto_merge = lookup(each.value, "allow_auto_merge", false) - allow_rebase_merge = lookup(each.value, "allow_rebase_merge", true) - delete_branch_on_merge = lookup(each.value, "delete_branch_on_merge", true) - - pages_enabled = lookup(each.value, "pages_enabled", false) - pages_configuration = lookup(each.value, "pages_configuration", null) - - advanced_security_status = lookup(each.value, "advanced_security_status", "enabled") - secret_scanning_status = lookup(each.value, "secret_scanning_status", "enabled") - secret_scanning_push_protection_status = lookup(each.value, "secret_scanning_push_protection_status", "enabled") - - dependabot_security_updates_enabled = lookup(each.value, "dependabot_security_updates_enabled", true) - - branch_protection_pattern = lookup(each.value, "branch_protection_pattern", "main") - branch_protection_allows_deletions = lookup(each.value, "branch_protection_allows_deletions", false) - branch_protection_enforce_admins = lookup(each.value, "branch_protection_enforce_admins", true) - branch_protection_force_push_bypassers = lookup(each.value, "branch_protection_force_push_bypassers", []) - branch_protection_push_restrictions = lookup(each.value, "branch_protection_push_restrictions", []) - branch_protection_require_signed_commits = lookup(each.value, "branch_protection_require_signed_commits", false) - branch_protection_required_linear_history = lookup(each.value, "branch_protection_required_linear_history", false) - branch_protection_require_conversation_resolution = lookup(each.value, "branch_protection_require_conversation_resolution", true) - branch_protection_allows_force_pushes = lookup(each.value, "branch_protection_allows_force_pushes", false) - branch_protection_blocks_creations = lookup(each.value, "branch_protection_blocks_creations", false) - branch_protection_lock_branch = lookup(each.value, "branch_protection_lock_branch", false) - branch_protection_required_pull_request_reviews_dismiss_stale_reviews = lookup(each.value, "branch_protection_required_pull_request_reviews_dismiss_stale_reviews", true) - branch_protection_required_pull_request_reviews_restrict_dismissals = lookup(each.value, "branch_protection_required_pull_request_reviews_restrict_dismissals", false) - branch_protection_required_pull_request_reviews_dismissal_restrictions = lookup(each.value, "branch_protection_required_pull_request_reviews_dismissal_restrictions", []) - branch_protection_required_pull_request_reviews_pull_request_bypassers = lookup(each.value, "branch_protection_required_pull_request_reviews_pull_request_bypassers", []) - branch_protection_required_pull_request_reviews_require_code_owner_reviews = lookup(each.value, "branch_protection_required_pull_request_reviews_require_code_owner_reviews", true) - branch_protection_required_pull_request_reviews_require_last_push_approval = lookup(each.value, "branch_protection_required_pull_request_reviews_require_last_push_approval", true) - branch_protection_required_pull_request_reviews_required_approving_review_count = lookup(each.value, "branch_protection_required_pull_request_reviews_required_approving_review_count", 1) - branch_protection_required_status_checks_strict = lookup(each.value, "branch_protection_required_status_checks_strict", true) - branch_protection_required_status_checks_contexts = lookup(each.value, "branch_protection_required_status_checks_contexts", []) - - access = lookup(each.value, "access", null) + topics = each.value.topics + tags = each.value.tags } \ No newline at end of file From 57fa356009afb026f7002fcca3dfc2efc5375f67 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:19:36 +0000 Subject: [PATCH 07/11] allow apply of task branch --- .github/workflows/cicd-terraform-github-repos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd-terraform-github-repos.yml b/.github/workflows/cicd-terraform-github-repos.yml index 55f119f57..69a80267d 100644 --- a/.github/workflows/cicd-terraform-github-repos.yml +++ b/.github/workflows/cicd-terraform-github-repos.yml @@ -74,7 +74,7 @@ jobs: ``` - name: Terraform Apply - if: github.ref == 'refs/heads/main' + # if: github.ref == 'refs/heads/main' id: apply run: terraform apply -input=false -no-color -auto-approve continue-on-error: true From 53f6265f979811145cd0ad27d29d7e1e84d85b81 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:28:20 +0000 Subject: [PATCH 08/11] remove junk continue on fail and add terraform destroy for testing --- .github/workflows/cicd-terraform-github-repos.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd-terraform-github-repos.yml b/.github/workflows/cicd-terraform-github-repos.yml index 69a80267d..e11c62772 100644 --- a/.github/workflows/cicd-terraform-github-repos.yml +++ b/.github/workflows/cicd-terraform-github-repos.yml @@ -77,4 +77,7 @@ jobs: # if: github.ref == 'refs/heads/main' id: apply run: terraform apply -input=false -no-color -auto-approve - continue-on-error: true + + - name: Terraform Destroy + id: destroy + run: terraform destroy -input=false -no-color -auto-approve From 0fe205d501aeee402b719c8197872342cc4362c3 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:30:22 +0000 Subject: [PATCH 09/11] block terraform apply from task branches, remove terraform destroy --- .github/workflows/cicd-terraform-github-repos.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/cicd-terraform-github-repos.yml b/.github/workflows/cicd-terraform-github-repos.yml index e11c62772..c0d1e0912 100644 --- a/.github/workflows/cicd-terraform-github-repos.yml +++ b/.github/workflows/cicd-terraform-github-repos.yml @@ -74,10 +74,6 @@ jobs: ``` - name: Terraform Apply - # if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' id: apply run: terraform apply -input=false -no-color -auto-approve - - - name: Terraform Destroy - id: destroy - run: terraform destroy -input=false -no-color -auto-approve From 99a99e41c98f8d2ebafe228307fff425cbfbdbd0 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:50:46 +0000 Subject: [PATCH 10/11] refactor the solution to define each repository in separate tf file each referencing the module rather than using a loop --- terraform/github/repositories/github-repos.tf | 50 ------------------- .../repositories/test-repository-levg.tf | 12 +++++ .../repositories/test-repository-levg2.tf | 12 +++++ .../repositories/test-repository-levg3.tf | 12 +++++ 4 files changed, 36 insertions(+), 50 deletions(-) delete mode 100644 terraform/github/repositories/github-repos.tf create mode 100644 terraform/github/repositories/test-repository-levg.tf create mode 100644 terraform/github/repositories/test-repository-levg2.tf create mode 100644 terraform/github/repositories/test-repository-levg3.tf diff --git a/terraform/github/repositories/github-repos.tf b/terraform/github/repositories/github-repos.tf deleted file mode 100644 index f8ef29598..000000000 --- a/terraform/github/repositories/github-repos.tf +++ /dev/null @@ -1,50 +0,0 @@ -locals { - operations_engineering_repositories = { - - "test-repository-levg" = { - name = "test-repository-levg" - application_name = "test-repository-levg" - description = "this repository was create by terraform managed by operations-engineering team" - topics = ["github", "terraform", "operations-engineering"] - tags = { - Team = "operations-engineering" - Phase = "POC" - } - } - - "test-repository-levg2" = { - name = "test-repository-levg2" - application_name = "test-repository-levg2" - description = "this repository was create by terraform managed by operations-engineering team" - topics = ["github", "terraform", "operations-engineering"] - tags = { - Team = "operations-engineering" - Phase = "POC" - } - } - - "test-repository-levg3" = { - name = "test-repository-levg3" - application_name = "test-repository-levg3" - description = "this repository was create by terraform managed by operations-engineering team" - topics = ["github", "terraform", "operations-engineering"] - tags = { - Team = "operations-engineering" - Phase = "POC" - } - } - - } -} - -module "operations_engineering_repositories" { - source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" - - for_each = { for repository in local.operations_engineering_repositories : repository.name => repository } - - name = each.value.name - application_name = each.value.application_name - description = each.value.description - topics = each.value.topics - tags = each.value.tags -} \ No newline at end of file diff --git a/terraform/github/repositories/test-repository-levg.tf b/terraform/github/repositories/test-repository-levg.tf new file mode 100644 index 000000000..36aead967 --- /dev/null +++ b/terraform/github/repositories/test-repository-levg.tf @@ -0,0 +1,12 @@ +module "repository" { + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" + + name = "test-repository-levg" + application_name = "test-repository-levg" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } +} \ No newline at end of file diff --git a/terraform/github/repositories/test-repository-levg2.tf b/terraform/github/repositories/test-repository-levg2.tf new file mode 100644 index 000000000..fdacc9c52 --- /dev/null +++ b/terraform/github/repositories/test-repository-levg2.tf @@ -0,0 +1,12 @@ +module "repository" { + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" + + name = "test-repository-levg2" + application_name = "test-repository-levg2" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } +} \ No newline at end of file diff --git a/terraform/github/repositories/test-repository-levg3.tf b/terraform/github/repositories/test-repository-levg3.tf new file mode 100644 index 000000000..87df9e092 --- /dev/null +++ b/terraform/github/repositories/test-repository-levg3.tf @@ -0,0 +1,12 @@ +module "repository" { + source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" + + name = "test-repository-levg3" + application_name = "test-repository-levg3" + description = "this repository was create by terraform managed by operations-engineering team" + topics = ["github", "terraform", "operations-engineering"] + tags = { + Team = "operations-engineering" + Phase = "POC" + } +} \ No newline at end of file From 57077f4f02ab72f0a9bc224869b6988a06845971 Mon Sep 17 00:00:00 2001 From: levgorbunov1 Date: Tue, 16 Jan 2024 15:53:45 +0000 Subject: [PATCH 11/11] rename modules --- terraform/github/repositories/test-repository-levg.tf | 2 +- terraform/github/repositories/test-repository-levg2.tf | 2 +- terraform/github/repositories/test-repository-levg3.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/github/repositories/test-repository-levg.tf b/terraform/github/repositories/test-repository-levg.tf index 36aead967..f94a6c228 100644 --- a/terraform/github/repositories/test-repository-levg.tf +++ b/terraform/github/repositories/test-repository-levg.tf @@ -1,4 +1,4 @@ -module "repository" { +module "test-repository-levg" { source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" name = "test-repository-levg" diff --git a/terraform/github/repositories/test-repository-levg2.tf b/terraform/github/repositories/test-repository-levg2.tf index fdacc9c52..21154b324 100644 --- a/terraform/github/repositories/test-repository-levg2.tf +++ b/terraform/github/repositories/test-repository-levg2.tf @@ -1,4 +1,4 @@ -module "repository" { +module "test-repository-levg2" { source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" name = "test-repository-levg2" diff --git a/terraform/github/repositories/test-repository-levg3.tf b/terraform/github/repositories/test-repository-levg3.tf index 87df9e092..c07852825 100644 --- a/terraform/github/repositories/test-repository-levg3.tf +++ b/terraform/github/repositories/test-repository-levg3.tf @@ -1,4 +1,4 @@ -module "repository" { +module "test-repository-levg3" { source = "github.com/ministryofjustice/operations-engineering-terraform-github-repositories" name = "test-repository-levg3"