Skip to content

Commit

Permalink
add stuff for using access keys
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 20, 2022
1 parent ecd54b5 commit 8a16c55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module "service_cicd_deployer" {
service_account = true
enable_sending_mail = false
create_access_keys = false
attached_policies = flatten(concat([for k, v in data.aws_iam_policy.cicd_deployer_policies : v.arn], [aws_iam_policy.cicd_deployer.arn]))
profile = var.profile
pgp_key_file = "./init/tf-gpg-key.b64"

attached_policies = flatten(concat([for k, v in data.aws_iam_policy.cicd_deployer_policies : v.arn], [aws_iam_policy.cicd_deployer.arn]))

tags = merge(
local.base_tags,
Expand All @@ -29,7 +32,7 @@ module "service_cicd_deployer" {
)
}
module "role_cicd_deployer" {
source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git?ref=tf-upgrade"
source = "git@github.e.it.census.gov:terraform-modules/aws-iam-role.git"

role_name = local.role_cicd_k8s_group_name
role_description = "Role for EKS cluster ${var.cluster_name} for access by ${var.cicd_k8s_group_name}"
Expand Down
5 changes: 4 additions & 1 deletion examples/full-cluster/cluster-roles/deployer.iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module "service_cicd_deployer" {
service_account = true
enable_sending_mail = false
create_access_keys = false
attached_policies = flatten(concat([for k, v in data.aws_iam_policy.cicd_deployer_policies : v.arn], [aws_iam_policy.cicd_deployer.arn]))
profile = var.profile
pgp_key_file = "./init/tf-gpg-key.b64"

attached_policies = flatten(concat([for k, v in data.aws_iam_policy.cicd_deployer_policies : v.arn], [aws_iam_policy.cicd_deployer.arn]))

tags = merge(
local.base_tags,
Expand Down

0 comments on commit 8a16c55

Please sign in to comment.