diff --git a/examples/github-complete/README.md b/examples/github-complete/README.md
index 79b6ecb8..6dd09a43 100644
--- a/examples/github-complete/README.md
+++ b/examples/github-complete/README.md
@@ -63,6 +63,7 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
| [alb\_ingress\_cidr\_blocks](#input\_alb\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules of the ALB - use your personal IP in the form of `x.x.x.x/32` for restricted testing | `list(string)` | n/a | yes |
| [domain](#input\_domain) | Route53 domain name to use for ACM certificate. Route53 zone for this domain should be created in advance | `string` | n/a | yes |
| [github\_owner](#input\_github\_owner) | Github owner | `string` | n/a | yes |
+| [github\_repo\_names](#input\_github\_repo\_names) | List of Github repositories that should be monitored by Atlantis | `list(string)` | n/a | yes |
| [github\_token](#input\_github\_token) | Github token | `string` | n/a | yes |
| [github\_user](#input\_github\_user) | Github user for Atlantis to utilize when performing Github activities | `string` | n/a | yes |
diff --git a/examples/github-complete/main.tf b/examples/github-complete/main.tf
index 7270f77b..23cc99d9 100644
--- a/examples/github-complete/main.tf
+++ b/examples/github-complete/main.tf
@@ -76,7 +76,7 @@ module "atlantis" {
# Atlantis
atlantis_github_user = var.github_user
atlantis_github_user_token = var.github_token
- atlantis_repo_allowlist = ["github.com/${var.github_owner}/*"]
+ atlantis_repo_allowlist = [for repo in var.github_repo_names : "github.com/${var.github_owner}/${repo}"]
# ALB access
alb_ingress_cidr_blocks = var.alb_ingress_cidr_blocks
@@ -103,7 +103,7 @@ module "github_repository_webhook" {
github_owner = var.github_owner
github_token = var.github_token
- atlantis_repo_allowlist = module.atlantis.atlantis_repo_allowlist
+ atlantis_repo_allowlist = var.github_repo_names
webhook_url = module.atlantis.atlantis_url_events
webhook_secret = module.atlantis.webhook_secret
diff --git a/examples/github-complete/terraform.tfvars.sample b/examples/github-complete/terraform.tfvars.sample
index beec2573..a9bec091 100644
--- a/examples/github-complete/terraform.tfvars.sample
+++ b/examples/github-complete/terraform.tfvars.sample
@@ -3,3 +3,4 @@ alb_ingress_cidr_blocks = ["x.x.x.x/32"]
github_owner = "myorg"
github_user = "atlantis"
github_token = "mygithubpersonalaccesstokenforatlantis"
+github_repo_names = ["mycoolrepo1", "mycoolrepo2"]
diff --git a/examples/github-complete/variables.tf b/examples/github-complete/variables.tf
index f0d60ee9..c71f1806 100644
--- a/examples/github-complete/variables.tf
+++ b/examples/github-complete/variables.tf
@@ -22,3 +22,9 @@ variable "github_user" {
description = "Github user for Atlantis to utilize when performing Github activities"
type = string
}
+
+variable "github_repo_names" {
+ description = "List of Github repositories that should be monitored by Atlantis"
+ type = list(string)
+}
+