Skip to content

Commit 2274c70

Browse files
eli-540 pass hashing secret name in env variable
1 parent a759b04 commit 2274c70

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

infrastructure/modules/lambda/lambda.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ resource "aws_lambda_function" "eligibility_signposting_lambda" {
2424
LOG_LEVEL = var.log_level
2525
ENABLE_XRAY_PATCHING = var.enable_xray_patching
2626
API_DOMAIN_NAME = var.api_domain_name
27+
HASHING_SECRET_NAME =
2728
}
2829
}
2930

infrastructure/modules/lambda/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ variable "api_domain_name" {
7878
description = "api domain name - env variable for status endpoint response"
7979
type = string
8080
}
81+
82+
variable "hashing_secret_name" {
83+
description = "hashing secret name"
84+
type = string
85+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
output "aws_hashing_secret_arn" {
22
value = aws_secretsmanager_secret.hashing_secret.arn
33
}
4+
5+
output "aws_hashing_secret_name" {
6+
value = aws_secretsmanager_secret.hashing_secret.name
7+
}
8+

infrastructure/stacks/api-layer/lambda.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module "eligibility_signposting_lambda_function" {
2525
eligibility_rules_bucket_name = module.s3_rules_bucket.storage_bucket_name
2626
eligibility_status_table_name = module.eligibility_status_table.table_name
2727
kinesis_audit_stream_to_s3_name = module.eligibility_audit_firehose_delivery_stream.firehose_stream_name
28+
hashing_secret_name = module.secrets_manager.aws_hashing_secret_name
2829
lambda_insights_extension_version = 38
2930
log_level = "INFO"
3031
enable_xray_patching = "true"

0 commit comments

Comments
 (0)