Skip to content

Commit 1c358ea

Browse files
authored
Update lambda.tf
1 parent 42ce84c commit 1c358ea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lambda.tf

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ resource "null_resource" "lambda_build" {
3131
provisioner "local-exec" {
3232
# Build the Lambda function
3333
command = <<-COMMAND
34-
adduser _apt --force-badname;
3534
apt update;
36-
apt install -y --no-install-recommends \
37-
docker \
38-
apt-transport-https \
39-
ca-certificates \
40-
curl \
41-
gnupg \
42-
lsb-release;
35+
apt-get upgrade -y --fix-missing;
36+
apt install -y --no-install-recommends docker;
37+
apt install -y --no-install-recommends apt-transport-https;
38+
apt install -y --no-install-recommends ca-certificates;
39+
apt install -y --no-install-recommends curl;
40+
apt install -y --no-install-recommends gnupg;
41+
apt install -y --no-install-recommends lsb-release;
4342
usermod -aG docker $${USER};
4443
mkdir -p ${local.lambda_output_path};
4544
docker run --rm \

0 commit comments

Comments
 (0)