diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index b45baa68..7276237c 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -131,7 +131,7 @@ jobs: AWS_REGION: ${{ secrets.DEV_AWS_REGION }} # ============================================================ - # 3 Condition ETL image and Push + # Condition ETL image and Push # ============================================================ condition_etl_image: needs: [determine_stage, shared_terraform] @@ -145,3 +145,20 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.DEV_AWS_REGION }} + # ============================================================ + # Deploy Condition ETL Lambda + # ============================================================ + condition_etl_lambda: + needs: [condition_etl_image, determine_stage] + uses: ./.github/workflows/_deploy_lambda.yml + with: + lambda_name: condition-etl + lambda_path: infrastructure/terraform/lambda/condition-etl + stage: ${{ needs.determine_stage.outputs.stage }} + ecr_repo: condition-etl-${{ needs.determine_stage.outputs.stage }} + image_digest: ${{ needs.condition_etl_image.outputs.image_digest }} + secrets: + AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} + AWS_REGION: ${{ secrets.DEV_AWS_REGION }} + diff --git a/infrastructure/terraform/lambda/condition_etl/main.tf b/infrastructure/terraform/lambda/condition-etl/main.tf similarity index 100% rename from infrastructure/terraform/lambda/condition_etl/main.tf rename to infrastructure/terraform/lambda/condition-etl/main.tf diff --git a/infrastructure/terraform/lambda/condition_etl/provider.tf b/infrastructure/terraform/lambda/condition-etl/provider.tf similarity index 100% rename from infrastructure/terraform/lambda/condition_etl/provider.tf rename to infrastructure/terraform/lambda/condition-etl/provider.tf diff --git a/infrastructure/terraform/lambda/condition_etl/variables.tf b/infrastructure/terraform/lambda/condition-etl/variables.tf similarity index 100% rename from infrastructure/terraform/lambda/condition_etl/variables.tf rename to infrastructure/terraform/lambda/condition-etl/variables.tf