Skip to content

Commit

Permalink
Merge pull request #1123 from alphagov/govsi-1055-separate-role-per-l…
Browse files Browse the repository at this point in the history
…ambdas

GOVSI-1055: Role fixes
  • Loading branch information
mrwilson authored Nov 29, 2021
2 parents e48456d + 5bf2ebb commit e83fa29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/terraform/oidc/lambda-roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ data "aws_iam_policy_document" "kms_policy_document" {
sid = "AllowAccessToKmsSigningKey"
effect = "Allow"
actions = ["kms:GetPublicKey"]
resources = [local.id_token_signing_key_alias_arn]
resources = [local.id_token_signing_key_arn]
}
}

Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/shared.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ locals {
authentication_security_group_id = data.terraform_remote_state.shared.outputs.authentication_security_group_id
authentication_subnet_ids = data.terraform_remote_state.shared.outputs.authentication_subnet_ids
id_token_signing_key_alias_name = data.terraform_remote_state.shared.outputs.id_token_signing_key_alias_name
id_token_signing_key_alias_arn = data.terraform_remote_state.shared.outputs.id_token_signing_key_alias_arn
id_token_signing_key_arn = data.terraform_remote_state.shared.outputs.id_token_signing_key_arn
audit_signing_key_alias_name = data.terraform_remote_state.shared.outputs.audit_signing_key_alias_name
audit_signing_key_arn = data.terraform_remote_state.shared.outputs.audit_signing_key_arn
sms_bucket_name = data.terraform_remote_state.shared.outputs.sms_bucket_name
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/oidc/token.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "aws_iam_policy_document" "kms_signing_policy_document" {
"kms:GetPublicKey",
]
resources = [
local.id_token_signing_key_alias_arn
local.id_token_signing_key_arn
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions ci/terraform/shared/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ output "id_token_signing_key_alias_name" {
value = aws_kms_alias.id_token_signing_key_alias.name
}

output "id_token_signing_key_alias_arn" {
value = aws_kms_alias.id_token_signing_key_alias.arn
output "id_token_signing_key_arn" {
value = aws_kms_key.id_token_signing_key.arn
}

output "audit_signing_key_alias_name" {
Expand Down

0 comments on commit e83fa29

Please sign in to comment.