Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

feat: add iam role for aws-terraform runner #627

Merged
merged 2 commits into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions stages/cloud-provider/aws/sharedsvc/github-runners.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ module "lead_terraform_pipeline_iam" {
namespace = var.github_runners_namespace
roles = var.lead_terraform_pipeline_roles
}

module "lead_terraform_github_runner_iam" {
source = "../../../../modules/environment/aws/iam/github-runner-iam"

name = "liatrio-aws-terraform-runners"
service_account_name = "liatrio-aws-terraform-runners"
aws_iam_openid_connect_provider_arn = module.eks.aws_iam_openid_connect_provider_arn
aws_iam_openid_connect_provider_url = module.eks.aws_iam_openid_connect_provider_url
namespace = var.github_runners_namespace
roles = [
"arn:aws:iam::489130170427:role/Developer", // prod
"arn:aws:iam::281127131043:role/Developer", // non-prod
"arn:aws:iam::774051255656:role/Developer", // sandbox
]
}
4 changes: 4 additions & 0 deletions stages/cloud-provider/aws/sharedsvc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ output "lead_terraform_pipeline_service_account_arn" {
value = module.lead_terraform_pipeline_iam.role_arn
}

output "aws_terraform_github_iam_role_arn" {
value = module.lead_terraform_github_runner_iam.role_arn
}

output "atlantis_service_account_arn" {
value = aws_iam_role.atlantis_service_account.arn
}
Expand Down