Skip to content

Commit

Permalink
use arn
Browse files Browse the repository at this point in the history
  • Loading branch information
tajewole-moj committed Oct 24, 2023
1 parent 07a2cf1 commit eb9ccbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/environments/apex/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ resource "aws_lambda_function" "snapshotDBFunction" {
source_code_hash = data.archive_file.dbsnapshot_file.output_base64sha256
runtime = local.snapshotDBFunctionruntime
# filename = local.snapshotDBFunctionfilename
layers = aws_lambda_layer_version.lambda_layer.compatible_runtimes
s3_bucket = "laa-${local.application_name}-${local.environment}-mp"
layers = [aws_lambda_layer_version.lambda_layer.arn]
s3_bucket = module.s3_bucket_lambda.lambdabucketname
s3_key = local.snapshotDBFunctionfilename

environment {
Expand All @@ -100,7 +100,7 @@ resource "aws_lambda_function" "deletesnapshotFunction" {
source_code_hash = data.archive_file.deletesnapshot_file.output_base64sha256
# filename = local.deletesnapshotFunctionfilename
runtime = local.deletesnapshotFunctionruntime
s3_bucket = "laa-${local.application_name}-${local.environment}-mp"
s3_bucket = module.s3_bucket_lambda.lambdabucketname
s3_key = local.deletesnapshotFunctionfilename

environment {
Expand All @@ -127,7 +127,7 @@ resource "aws_lambda_function" "connectDBFunction" {
source_code_hash = data.archive_file.dbconnect_file.output_base64sha256
runtime = local.connectDBFunctionruntime
# filename = local.connectDBFunctionfilename
layers = aws_lambda_layer_version.lambda_layer.compatible_runtimes
layers = [aws_lambda_layer_version.lambda_layer.arn]
s3_bucket = module.s3_bucket_lambda.lambdabucketname
s3_key = local.connectDBFunctionfilename

Expand Down

0 comments on commit eb9ccbe

Please sign in to comment.