mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
hubspot etl
This commit is contained in:
parent
d6f9b48797
commit
764ee81dad
2 changed files with 42 additions and 2 deletions
42
.github/workflows/deploy_terraform.yml
vendored
42
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -433,4 +433,44 @@ jobs:
|
||||||
- name: Terraform Apply
|
- name: Terraform Apply
|
||||||
if: env.TERRAFORM_APPLY == 'true'
|
if: env.TERRAFORM_APPLY == 'true'
|
||||||
working-directory: infrastructure/terraform/cdn
|
working-directory: infrastructure/terraform/cdn
|
||||||
run: terraform apply -auto-approve tfplan
|
run: terraform apply -auto-approve tfplan
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Build Hubspot ETL image
|
||||||
|
# ============================================================
|
||||||
|
hubspot_etl_image:
|
||||||
|
needs: [determine_stage, shared_terraform]
|
||||||
|
uses: ./.github/workflows/_build_image.yml
|
||||||
|
with:
|
||||||
|
ecr_repo: hubspot-etl-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
dockerfile_path: etl/hubspot/scripts/scraper/handler/Dockerfile
|
||||||
|
build_context: .
|
||||||
|
build_args: |
|
||||||
|
DEV_DB_HOST=$DEV_DB_HOST
|
||||||
|
DEV_DB_PORT=$DEV_DB_PORT
|
||||||
|
DEV_DB_NAME=$DEV_DB_NAME
|
||||||
|
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 }}
|
||||||
|
DEV_DB_HOST: ${{ secrets.DEV_DB_HOST }}
|
||||||
|
DEV_DB_PORT: ${{ secrets.DEV_DB_PORT }}
|
||||||
|
DEV_DB_NAME: ${{ secrets.DEV_DB_NAME }}
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Deploy OrdanceSurvey Lambda
|
||||||
|
# ============================================================
|
||||||
|
ordnanceSurvey_lambda:
|
||||||
|
needs: [hubspot_etl_image, determine_stage]
|
||||||
|
uses: ./.github/workflows/_deploy_lambda.yml
|
||||||
|
with:
|
||||||
|
lambda_name: hubspotETLtoAraDb
|
||||||
|
lambda_path: infrastructure/terraform/lambda/hubspot_deal_etl
|
||||||
|
stage: ${{ needs.determine_stage.outputs.stage }}
|
||||||
|
ecr_repo: ordnance-${{ needs.determine_stage.outputs.stage }}
|
||||||
|
image_digest: ${{ needs.hubspot_etl_image.outputs.image_digest }}
|
||||||
|
terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }}
|
||||||
|
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 }}
|
||||||
|
|
|
||||||
|
|
@ -586,7 +586,7 @@ module "hubspot_etl_bucket" {
|
||||||
|
|
||||||
module "hubspot_etl_registry" {
|
module "hubspot_etl_registry" {
|
||||||
source = "../modules/container_registry"
|
source = "../modules/container_registry"
|
||||||
name = "hubspot_etl"
|
name = "hubspot-etl"
|
||||||
stage = var.stage
|
stage = var.stage
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue