Skip to content

Commit

Permalink
Update_271124_7
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckingham authored and Buckingham committed Nov 27, 2024
1 parent 7aee9f2 commit c159726
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/environments/ppud/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ data "aws_acm_certificate" "WAM_PROD_ALB" {
domain = "wam.ppud.justice.gov.uk"
statuses = ["ISSUED"]
}

# Klayers account ID - used by lambda layer ARNs - https://github.com/keithrozario/Klayers?tab=readme-ov-file
data "aws_ssm_parameter" "klayers_account" {
name = "klayers-account"
with_decryption = true
}

output "klayers_account" {
value = data.aws_ssm_parameter.klayers_account.value
}
2 changes: 2 additions & 0 deletions terraform/environments/ppud/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ resource "aws_lambda_function" "terraform_lambda_func_send_cpu_graph_dev" {
layers = [
"arn:aws:lambda:eu-west-2:770693421928:layer:Klayers-p312-numpy:8", #Publically available ARN for numpy package
"arn:aws:lambda:eu-west-2:770693421928:layer:Klayers-p312-pillow:1" #Publically available ARN for pillow package
# "arn:aws:lambda:eu-west-2:${data.aws_ssm_parameter.klayers_account.value}:layer:Klayers-p312-numpy:8",
# "arn:aws:lambda:eu-west-2:${data.aws_ssm_parameter.klayers_account.value}:layer:Klayers-p312-pillow:1"
]
}

Expand Down

0 comments on commit c159726

Please sign in to comment.