Skip to content

Commit

Permalink
added emails mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cphalen committed Feb 22, 2023
1 parent c225439 commit d4eeec0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module "aws_accounts" {
for_each = local.users
source = "./modules/aws_account"
pennkey = each.key
emails = local.emails
view_cluster = data.aws_iam_policy_document.view-k8s.json
}
5 changes: 5 additions & 0 deletions terraform/modules/aws_account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ variable "view_cluster" {
type = string
description = "Policy to allow IAM users to describe the cluster"
}

variable "emails" {
type = map(any)
description = "Pennkey to email map"
}
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ variable "GF_GH_CLIENT_SECRET" {
type = string
description = "GitHub Client Secret for the CIS1880 Grafana OAuth2 Application"
}

variable "emails" {
type = map(any)
description = "Pennkey to email map"
}

0 comments on commit d4eeec0

Please sign in to comment.