From 9bb5c71ed277b64263bdd511e44a8ccf79398a8e Mon Sep 17 00:00:00 2001 From: Joalia ONDOUA Date: Sun, 28 Jan 2024 13:30:36 +0000 Subject: [PATCH] fix: lamda-layer/ var.tf modifie --- .github/workflows/deploy_push.yml | 3 ++- infra/main.tf | 25 ++++--------------------- infra/vars.tf | 2 +- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy_push.yml b/.github/workflows/deploy_push.yml index 8ec4164..34c474b 100644 --- a/.github/workflows/deploy_push.yml +++ b/.github/workflows/deploy_push.yml @@ -17,7 +17,7 @@ jobs: env: # All TF variables are define din Terraform Cloud API_KEY_TEST_MAIL: ${{secrets.API_KEY_TEST_MAIL}} - TEST_MAIL_NAMESPACE: ${{secrets.TEST_MAIL_NAMESPACE}} + TEST_MAIL_NAMESPACE: ${{secrets.TEST_MAIL_NAMESPACE}} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} TFE_TOKEN: ${{ secrets.TFE_TOKEN }} steps: @@ -106,6 +106,7 @@ jobs: run: exit 1 - name: Terraform Apply run: | + apt install zip cd infra tfcmt apply -- terraform apply -auto-approve -no-color - name: Website URL diff --git a/infra/main.tf b/infra/main.tf index 490ca7e..118ac02 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -167,32 +167,15 @@ resource "null_resource" "lambda_layer" { provisioner "local-exec" { command = < HERE - -# resource "null_resource" "test_lamdazip" { -# provisioner "local-exec" { - -# command = "/bin/bash make_lambda_layer/docker_install.sh" -# } -# } - resource "aws_lambda_layer_version" "test_lambda_layer" { filename = "python.zip" layer_name = "test_lambda_layer" diff --git a/infra/vars.tf b/infra/vars.tf index 26d116a..cf09f45 100644 --- a/infra/vars.tf +++ b/infra/vars.tf @@ -62,7 +62,7 @@ variable "TFC_WORKSPACE_NAME" { # ==== Anne Lise ADDS locals { - requirements_path = "../make_lamda_layer/requirements.txt" + requirements_path = "api/requirements.txt" } # variable "container_name" { # default = "lambda_docker"