Skip to content

Commit cc8ded6

Browse files
Enable in production only
1 parent 14890f5 commit cc8ded6

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

terraform/modules/spack_github/mirrors_iam.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ locals {
1111
}
1212
}
1313

14+
data "aws_caller_identity" "current" {}
15+
1416
data "aws_iam_policy_document" "github_oidc_assume_role" {
1517
for_each = local.mirror_roles
1618

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
variable "deployment_name" {
2+
type = string
3+
}
4+
5+
variable "deployment_stage" {
6+
type = string
7+
}
8+
9+
variable "region" {
10+
type = string
11+
}

terraform/production/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ module "spack_gitlab" {
2626

2727
gitlab_token = var.gitlab_token
2828
}
29+
30+
module "spack_github" {
31+
source = "../modules/spack_github"
32+
33+
deployment_name = "prod"
34+
deployment_stage = "blue"
35+
36+
region = "us-east-1"
37+
}

0 commit comments

Comments
 (0)