Skip to content

Commit

Permalink
Refactor default.auto.tfvars and main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Dec 19, 2024
1 parent d34714e commit 4103f97
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion default.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ create_ecs_cluster = true

ecs_cluster_name = "ecs-ghe-runners"
# vpc_id = "vpc-00576a396ec570b94"
vpc_id = "vpc-00576a396ec570b94"
vpc_id = "vpc-00576a396ec570b94"

subnets = [
# "subnet-08f02597605e4ab21"
Expand Down
4 changes: 2 additions & 2 deletions ecs_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# __generated__ by Terraform from "ecs-ghe-runners-us-gov-west-1"
resource "aws_ecs_cluster" "github-runner" {
count = var.create_ecs_cluster ? 1 : 0
count = var.create_ecs_cluster ? 1 : 0
name = "${var.ecs_cluster_name}-${data.aws_region.current.name}"
tags = {}
tags_all = {}
Expand All @@ -14,7 +14,7 @@ resource "aws_ecs_cluster" "github-runner" {
}

data "aws_ecs_cluster" "github-runner" {
count = var.create_ecs_cluster ? 0 : 1
count = var.create_ecs_cluster ? 0 : 1
cluster_name = "${var.ecs_cluster_name}-${data.aws_region.current.name}"
}

Expand Down
8 changes: 4 additions & 4 deletions varfiles/csvd-common-ew.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace = "csvd-common-ew"
repo_org = "CSVD"
desired_count = 1
create_ecs_cluster = true
namespace = "csvd-common-ew"
repo_org = "CSVD"
desired_count = 1
create_ecs_cluster = true
# create_vpc_endpoint = false
aws_account = "csvd-common-ew"

Expand Down
6 changes: 3 additions & 3 deletions varfiles/csvd.tfvars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace = "csvd-ghe-runner"
repo_org = "CSVD"
namespace = "csvd-ghe-runner"
repo_org = "CSVD"
desired_count = 1
aws_account = "cvsd-dev-ew"
aws_account = "cvsd-dev-ew"


certs = {
Expand Down
4 changes: 2 additions & 2 deletions varfiles/edtsb.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The name of the ECS cluster
namespace = "edtsb-ghe-runner"
repo_org = "EDTSB"
namespace = "edtsb-ghe-runner"
repo_org = "EDTSB"
desired_count = 1
4 changes: 2 additions & 2 deletions varfiles/sct-engineering.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace = "sct-eng-ghe-runner"
repo_org = "SCT-Engineering"
namespace = "sct-eng-ghe-runner"
repo_org = "SCT-Engineering"
desired_count = 1

0 comments on commit 4103f97

Please sign in to comment.