File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
terraform/modules/api-ingestion-lambda Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,12 @@ data "archive_file" "lambda" {
122122}
123123
124124resource "aws_s3_object" "lambda" {
125- bucket = var. lambda_artefact_storage_bucket
126- key = " ${ local . lambda_name_underscore } .zip"
127- source = data. archive_file . lambda . output_path
128- acl = " private"
129- source_hash = null_resource. run_install_requirements . triggers [" dir_sha1" ]
130- depends_on = [data . archive_file . lambda ]
131- metadata = {
132- last_updated = data.archive_file.lambda.output_base64sha256
133- }
125+ bucket = var. lambda_artefact_storage_bucket
126+ key = " ${ local . lambda_name_underscore } -${ null_resource. run_install_requirements . triggers . dir_sha1 } .zip"
127+ source = data. archive_file . lambda . output_path
128+ acl = " private"
129+ depends_on = [data . archive_file . lambda ]
130+ etag = filemd5 (data. archive_file . lambda . output_path )
134131}
135132
136133resource "aws_lambda_function" "lambda" {
You can’t perform that action at this time.
0 commit comments