mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #945 from Hestia-Homes/main
tf plan and apply with vars
This commit is contained in:
commit
f7330664dd
4 changed files with 11 additions and 0 deletions
4
.github/workflows/_deploy_lambda.yml
vendored
4
.github/workflows/_deploy_lambda.yml
vendored
|
|
@ -80,6 +80,8 @@ on:
|
||||||
required: false
|
required: false
|
||||||
TF_VAR_pashub_password:
|
TF_VAR_pashub_password:
|
||||||
required: false
|
required: false
|
||||||
|
TF_VAR_hubspot_api_key:
|
||||||
|
required: false
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -146,6 +148,7 @@ jobs:
|
||||||
TF_VAR_social_housing_wave_3_sharepoint_id: ${{ secrets.TF_VAR_social_housing_wave_3_sharepoint_id }}
|
TF_VAR_social_housing_wave_3_sharepoint_id: ${{ secrets.TF_VAR_social_housing_wave_3_sharepoint_id }}
|
||||||
TF_VAR_pashub_email: ${{ secrets.TF_VAR_pashub_email }}
|
TF_VAR_pashub_email: ${{ secrets.TF_VAR_pashub_email }}
|
||||||
TF_VAR_pashub_password: ${{ secrets.TF_VAR_pashub_password }}
|
TF_VAR_pashub_password: ${{ secrets.TF_VAR_pashub_password }}
|
||||||
|
TF_VAR_hubspot_api_key: ${{ secrets.TF_VAR_hubspot_api_key }}
|
||||||
run: |
|
run: |
|
||||||
ECR_REPO_URL_VAR=""
|
ECR_REPO_URL_VAR=""
|
||||||
if [[ -n "${{ inputs.ecr_repo }}" ]]; then
|
if [[ -n "${{ inputs.ecr_repo }}" ]]; then
|
||||||
|
|
@ -191,6 +194,7 @@ jobs:
|
||||||
TF_VAR_social_housing_wave_3_sharepoint_id: ${{ secrets.TF_VAR_social_housing_wave_3_sharepoint_id }}
|
TF_VAR_social_housing_wave_3_sharepoint_id: ${{ secrets.TF_VAR_social_housing_wave_3_sharepoint_id }}
|
||||||
TF_VAR_pashub_email: ${{ secrets.TF_VAR_pashub_email }}
|
TF_VAR_pashub_email: ${{ secrets.TF_VAR_pashub_email }}
|
||||||
TF_VAR_pashub_password: ${{ secrets.TF_VAR_pashub_password }}
|
TF_VAR_pashub_password: ${{ secrets.TF_VAR_pashub_password }}
|
||||||
|
TF_VAR_hubspot_api_key: ${{ secrets.TF_VAR_hubspot_api_key }}
|
||||||
run: |
|
run: |
|
||||||
EXTRA_VARS=""
|
EXTRA_VARS=""
|
||||||
if [[ -n "${{ inputs.ecr_repo }}" ]]; then
|
if [[ -n "${{ inputs.ecr_repo }}" ]]; then
|
||||||
|
|
|
||||||
1
.github/workflows/deploy_terraform.yml
vendored
1
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -518,6 +518,7 @@ jobs:
|
||||||
TF_VAR_db_host: ${{ secrets.DEV_DB_HOST }}
|
TF_VAR_db_host: ${{ secrets.DEV_DB_HOST }}
|
||||||
TF_VAR_db_name: ${{ secrets.DEV_DB_NAME }}
|
TF_VAR_db_name: ${{ secrets.DEV_DB_NAME }}
|
||||||
TF_VAR_db_port: ${{ secrets.DEV_DB_PORT }}
|
TF_VAR_db_port: ${{ secrets.DEV_DB_PORT }}
|
||||||
|
TF_VAR_hubspot_api_key: ${{ secrets.HUBSPOT_API_KEY }}
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ module "hubspot_deal_etl" {
|
||||||
DB_HOST = var.db_host
|
DB_HOST = var.db_host
|
||||||
DB_NAME = var.db_name
|
DB_NAME = var.db_name
|
||||||
DB_PORT = var.db_port
|
DB_PORT = var.db_port
|
||||||
|
HUBSPOT_API_KEY = var.hubspot_api_key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,11 @@ variable "db_host" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "hubspot_api_key" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
variable "db_name" {
|
variable "db_name" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue