Skip to content

Commit caddff2

Browse files
committed
fix: documentation
1 parent 4ec387e commit caddff2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/github-complete/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
6363
| <a name="input_alb_ingress_cidr_blocks"></a> [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 |
6464
| <a name="input_domain"></a> [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 |
6565
| <a name="input_github_owner"></a> [github\_owner](#input\_github\_owner) | Github owner | `string` | n/a | yes |
66+
| <a name="input_github_repo_names"></a> [github\_repo\_names](#input\_github\_repo\_names) | List of Github repositories that should be monitored by Atlantis | `list(string)` | n/a | yes |
6667
| <a name="input_github_token"></a> [github\_token](#input\_github\_token) | Github token | `string` | n/a | yes |
6768
| <a name="input_github_user"></a> [github\_user](#input\_github\_user) | Github user for Atlantis to utilize when performing Github activities | `string` | n/a | yes |
68-
| <a name="input_github_repo_names"></a> [github\_repo\_names](#input\_github\_repo\_names) | Github user for Atlantis to utilize when performing Github activities | `list(string)` | n/a | yes |
6969

7070
## Outputs
7171

examples/github-complete/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module "atlantis" {
7676
# Atlantis
7777
atlantis_github_user = var.github_user
7878
atlantis_github_user_token = var.github_token
79-
atlantis_repo_allowlist = var.github_repo_names
79+
atlantis_repo_allowlist = [for repo in var.github_repo_names : "github.com/${repo}/*"]
8080

8181
# ALB access
8282
alb_ingress_cidr_blocks = var.alb_ingress_cidr_blocks
@@ -103,7 +103,7 @@ module "github_repository_webhook" {
103103
github_owner = var.github_owner
104104
github_token = var.github_token
105105

106-
atlantis_repo_allowlist = module.atlantis.atlantis_repo_allowlist
106+
atlantis_repo_allowlist = var.github_repo_names
107107

108108
webhook_url = module.atlantis.atlantis_url_events
109109
webhook_secret = module.atlantis.webhook_secret

0 commit comments

Comments
 (0)