Skip to content

Commit 857bf95

Browse files
committed
Merge branch 'DL-114-create-lambda-function-to-handle-csv-files' of github.com:LBHackney-IT/Data-Platform into DL-114-create-lambda-function-to-handle-csv-files
2 parents 66c28d3 + 1bb92f4 commit 857bf95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/etl/62-lambda-csv-to-glue-catalog.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module "csv_to_glue_catalog_lambda" {
119119
lambda_timeout = 300 # timeout early (5 minutes)
120120
lambda_memory_size = 1024
121121
layers = [
122-
"arn:aws:lambda:${data.aws_region.current.name}:336392948345:layer:AWSSDKPandas-Python311:20"
122+
"arn:aws:lambda:${data.aws_region.current.name}:${data.aws_caller_identity.data_platform.account_id}:layer:AWSSDKPandas-Python311:20"
123123
]
124124
description = "Automatically creates/deletes Glue Catalog tables when CSV files are uploaded/deleted in user_uploads bucket"
125125
environment_variables = {

0 commit comments

Comments
 (0)