File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,17 @@ resource "aws_lambda_layer_version" "function_layers" {
4848 compatible_runtimes = [" python3.13" ]
4949}
5050
51+ resource "aws_s3_object" "utils_deps" {
52+ bucket = aws_s3_bucket. artifacts_bucket . bucket
53+ key = " ${ var . DEPLOY_NAME } -utils-deps.zip"
54+ source = " ${ path . module } /artifacts/layers/utils-deps.zip"
55+ source_hash = filemd5 (" ${ path . module } /artifacts/layers/utils-deps.zip" )
56+ }
57+
5158resource "aws_lambda_layer_version" "utils_layer" {
5259 layer_name = " ${ var . DEPLOY_NAME } -utils_layer"
53- filename = " ${ path . module } /artifacts/layers/utils-deps.zip"
60+ s3_bucket = aws_s3_bucket. artifacts_bucket . bucket
61+ s3_key = aws_s3_object. utils_deps . key
5462 source_code_hash = filebase64sha256 (" ${ path . module } /artifacts/layers/utils-deps.zip" )
5563 compatible_runtimes = [" python3.13" ]
5664}
You can’t perform that action at this time.
0 commit comments