diff --git a/.github/workflows/deploy_push.yml b/.github/workflows/deploy_push.yml index cdc1e804..45db91a3 100644 --- a/.github/workflows/deploy_push.yml +++ b/.github/workflows/deploy_push.yml @@ -99,15 +99,17 @@ jobs: - name: Build python lambda layer id: build run: | - cd make_lamnda_layer + cd infra/make_lamda_layer chmod +x runner.sh ./runner.sh + - name: Terraform Plan id: plan run: | cd infra tfcmt plan -- terraform plan -no-color + - name: Terraform Plan Status if: steps.plan.outcome == 'failure' run: exit 1 diff --git a/infra/api/test_liveness_mtchoun-mouh.py b/infra/api/test_liveness_mtchoun-mouh.py index b2e6238f..49a90e50 100644 --- a/infra/api/test_liveness_mtchoun-mouh.py +++ b/infra/api/test_liveness_mtchoun-mouh.py @@ -14,7 +14,7 @@ def setup_method(self, method): chrome_options.add_argument('--headless') chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-dev-shm-usage') - self.driver = webdriver.Chrome(chrome_options=chrome_options) + self.driver = webdriver.Chrome(options=chrome_options) self.vars = {} def teardown_method(self, method): diff --git a/infra/main.tf b/infra/main.tf index e465dd93..3479e7e6 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -140,49 +140,7 @@ resource "aws_lambda_permission" "apigw_lambda" { # More: http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html source_arn = "arn:aws:execute-api:${var.region}:${data.aws_caller_identity.current.account_id}:${aws_api_gateway_rest_api.api.id}/*/${aws_api_gateway_method.method.http_method}${aws_api_gateway_resource.resource.path}" } -# ======================================> HERE - -# # create zip file from requirements.txt. Triggers only when the file is updated -# resource "null_resource" "lambda_layer" { -# triggers = { -# requirements = filesha1(local.requirements_path) -# } -# # the command to install python and dependencies to the machine and zips -# provisioner "local-exec" { -# command = <