Skip to content

Commit 430a42a

Browse files
author
jasonBirchall
committed
♻️ Change the IAM role name for reports prototype
Before this commit it is set to , which doesn't make a lot of sense. This change adds the word prototype and removes the second govuk instance
1 parent 276ce84 commit 430a42a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • terraform/deployments/govuk-reports

terraform/deployments/govuk-reports/iam.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# IAM role for govuk-reports application with access to Cost Explorer, RDS, and tagging APIs
22

33
locals {
4-
govuk_reports_service_account_name = "govuk-reports"
4+
govuk_reports_service_account_name = "govuk-reports-prototype"
55
}
66

77
# IAM policy document for govuk-reports permissions
@@ -62,7 +62,7 @@ module "govuk_reports_iam_role" {
6262
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
6363
version = "~> 5.20"
6464

65-
role_name = "${local.govuk_reports_service_account_name}-${data.tfe_outputs.cluster_infrastructure.nonsensitive_values.cluster_id}"
65+
role_name = local.govuk_reports_service_account_name
6666
role_description = "Role for govuk-reports application. Corresponds to ${local.govuk_reports_service_account_name} k8s ServiceAccount."
6767
max_session_duration = 28800
6868

0 commit comments

Comments
 (0)