Skip to content

Commit 0bfae4b

Browse files
author
Thomas Loubrieu
committed
use pip3 instead of pip which might not be available locally.
1 parent f1390f2 commit 0bfae4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

terraform/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "null_resource" "prepare_layer" {
4646
}
4747

4848
provisioner "local-exec" {
49-
command = "rm -fr ${path.module}/build/layer/python && mkdir -p ${path.module}/build/layer/ && cp -r ${path.module}/src/layer ${path.module}/build/layer/python && pip install -r ${path.module}/build/layer/python/requirements.txt -t ${path.module}/build/layer/python"
49+
command = "rm -fr ${path.module}/build/layer/python && mkdir -p ${path.module}/build/layer/ && cp -r ${path.module}/src/layer ${path.module}/build/layer/python && pip3 install -r ${path.module}/build/layer/python/requirements.txt -t ${path.module}/build/layer/python"
5050
}
5151

5252
}

0 commit comments

Comments
 (0)