Skip to content

Commit 1c65206

Browse files
committed
refactor: remove default value for optional parmaters & make cluster name configurable
1 parent a673f82 commit 1c65206

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

examples/complete/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ atlantis_repo_allowlist = ["repo1", "repo2"]
1414
# Optional Parameters
1515
thumbprint_list = ["oidc-thumbprint-1", "oidc-thumbprint-2"]
1616
atlantis_docker_image = = "<your-custom-docker-image>"
17+
ecs_cluster_name = "<your-ecs-cluster-name>"
1718
```
1819

1920
## Requirements

examples/complete/main.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ module "atlantis" {
66
atlantis_gh_user = var.atlantis_gh_user
77
atlantis_repo_allowlist = var.atlantis_repo_allowlist
88
atlantis_url = var.atlantis_url
9-
thumbprint_list = var.thumbprint_list
10-
atlantis_docker_image = var.atlantis_docker_image
9+
10+
# Optional variables
11+
thumbprint_list = var.thumbprint_list
12+
atlantis_docker_image = var.atlantis_docker_image
13+
ecs_cluster_name = var.ecs_cluster_name
1114
}

examples/complete/variables.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ variable "atlantis_url" {
2828
type = string
2929
}
3030

31+
# Optional variables defination
3132
variable "thumbprint_list" {
3233
description = "List of thumbprints for the OIDC provider"
3334
type = list(string)
34-
default = ["e252aa6e92432f32cbc1b182056627c239652678"]
3535
}
3636

3737
variable "atlantis_docker_image" {
3838
description = "The Docker image to use for the Atlantis server"
3939
type = string
40-
default = "ghcr.io/runatlantis/atlantis:v0.23.1"
40+
}
41+
42+
variable "ecs_cluster_name" {
43+
description = "The name of the ECS cluster"
44+
type = string
4145
}

0 commit comments

Comments
 (0)