Skip to content

Commit 93b0456

Browse files
committed
add temp KMS key to id_sync SQS queue
1 parent 3932f7a commit 93b0456

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

terraform/sqs_id_sync.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
resource "aws_sqs_queue" "id_sync_queue" {
44
name = "${local.short_prefix}-id-sync-queue"
5+
kms_master_key_id = aws_kms_alias.id_sync_sqs_encryption.name
56
visibility_timeout_seconds = 60
67
redrive_policy = jsonencode({
78
deadLetterTargetArn = aws_sqs_queue.id_sync_dlq.arn

terraform/temp_id_sync_sqs_kms.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ locals {
7070
# MNS id/role: ultimately these should go in infra/environments/<env>/variables.tfvars
7171

7272
mns_account_id = "631615744739"
73-
mns_admin_role = "role"
73+
mns_admin_role = "role/nhs-mns-events-lambda-delivery"
7474

7575
policy_statement_allow_mns = {
7676
Sid = "AllowMNSLambdaDelivery",
7777
Effect = "Allow",
7878
Principal = {
79-
AWS = "arn:aws:iam::${local.mns_account_id}:${local.mns_admin_role}/nhs-mns-events-lambda-delivery"
79+
AWS = "arn:aws:iam::${local.mns_account_id}:${local.mns_admin_role}"
8080
},
8181
Action = "kms:GenerateDataKey",
8282
Resource = "*"

0 commit comments

Comments
 (0)