Skip to content

Commit

Permalink
add sct-engineering for runners (#3)
Browse files Browse the repository at this point in the history
* add sct-engineering for runners

* Update terraform_plan.yaml

* Autoformatting TF Code

---------

Co-authored-by: David John Arnold Jr <david.j.arnold.jr@census.gov>
  • Loading branch information
morga471 and arnol377 committed Oct 24, 2024
1 parent ea0bf24 commit d005fdd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: [ ghe-runners ]
runs-on: [ "229685449397" ]
env:
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ module "github-runner" {

extra_environment_vars = local.proxy_vars
github_runner_permissions_arn = aws_iam_policy.admin_policy.arn
desired_count = var.desired_count
server_url = var.server_url
desired_count = var.desired_count
server_url = var.server_url
runner_labels = [
lower(var.repo_org),
"${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}",
Expand Down
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
provider "github" {
owner = var.repo_org
owner = var.repo_org
base_url = var.base_url
}
3 changes: 3 additions & 0 deletions varfiles/sct-engineering.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace = "sct-eng-ghe-runner"
repo_org = "SCT-Engineering"
desired_count = 1
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ variable "create_ecs_cluster" {
default = false
}

variable desired_count {
variable "desired_count" {
default = 3
}

variable base_url {
variable "base_url" {
default = "https://github.e.it.census.gov/"
}

0 comments on commit d005fdd

Please sign in to comment.