-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #283 from nationalarchives/TDRD-414-add-email-env-var
[TDRD 414] Add env var for tdr inbox email
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ resource "aws_lambda_function" "notifications_lambda_function" { | |
TRANSFER_COMPLETE_TEMPLATE_ID = aws_kms_ciphertext.environment_vars_notifications["transfer_complete_template_id"].ciphertext_blob | ||
GOV_UK_NOTIFY_API_KEY = aws_kms_ciphertext.environment_vars_notifications["gov_uk_notify_api_key"].ciphertext_blob | ||
SEND_GOV_UK_NOTIFICATIONS = aws_kms_ciphertext.environment_vars_notifications["send_gov_uk_notifications"].ciphertext_blob | ||
TDR_INBOX_EMAIL = aws_kms_ciphertext.environment_vars_notifications["tdr_inbox_email"].ciphertext_blob | ||
} | ||
} | ||
|
||
|
@@ -52,6 +53,7 @@ resource "aws_kms_ciphertext" "environment_vars_notifications" { | |
transfer_complete_template_id = data.aws_ssm_parameter.gov_uk_transfer_complete_template_id[0].value | ||
gov_uk_notify_api_key = data.aws_ssm_parameter.gov_uk_notify_api_key[0].value | ||
send_gov_uk_notifications = local.environment == "prod" | ||
tdr_inbox_email = local.environment == "prod" ? "[email protected]" : "[email protected]" | ||
} | ||
# This lambda is created by the tdr-terraform-backend project as it only exists in the management account so we can't use any KMS keys | ||
# created by the terraform environments project as they won't exist when we first run the backend project. | ||
|