mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
ensure db host, name and port are passed through as TF_VARs
This commit is contained in:
parent
c6af90f51c
commit
8c60f95219
2 changed files with 15 additions and 0 deletions
12
.github/workflows/_deploy_lambda.yml
vendored
12
.github/workflows/_deploy_lambda.yml
vendored
|
|
@ -42,6 +42,12 @@ on:
|
|||
required: true
|
||||
AWS_REGION:
|
||||
required: true
|
||||
TF_VAR_db_host:
|
||||
required: false
|
||||
TF_VAR_db_name:
|
||||
required: false
|
||||
TF_VAR_db_port:
|
||||
required: false
|
||||
TF_VAR_api_key:
|
||||
required: false
|
||||
TF_VAR_secret_key:
|
||||
|
|
@ -101,6 +107,9 @@ jobs:
|
|||
- name: Terraform Plan
|
||||
working-directory: ${{ inputs.lambda_path }}
|
||||
env:
|
||||
TF_VAR_db_host: ${{ secrets.TF_VAR_db_host }}
|
||||
TF_VAR_db_name: ${{ secrets.TF_VAR_db_name }}
|
||||
TF_VAR_db_port: ${{ secrets.TF_VAR_db_port }}
|
||||
TF_VAR_api_key: ${{ secrets.TF_VAR_api_key }}
|
||||
TF_VAR_secret_key: ${{ secrets.TF_VAR_secret_key }}
|
||||
TF_VAR_domain_name: ${{ secrets.TF_VAR_domain_name }}
|
||||
|
|
@ -123,6 +132,9 @@ jobs:
|
|||
if: inputs.terraform_destroy == 'true' && inputs.terraform_apply != 'true'
|
||||
working-directory: ${{ inputs.lambda_path }}
|
||||
env:
|
||||
TF_VAR_db_host: ${{ secrets.TF_VAR_db_host }}
|
||||
TF_VAR_db_name: ${{ secrets.TF_VAR_db_name }}
|
||||
TF_VAR_db_port: ${{ secrets.TF_VAR_db_port }}
|
||||
TF_VAR_api_key: ${{ secrets.TF_VAR_api_key }}
|
||||
TF_VAR_secret_key: ${{ secrets.TF_VAR_secret_key }}
|
||||
TF_VAR_domain_name: ${{ secrets.TF_VAR_domain_name }}
|
||||
|
|
|
|||
3
.github/workflows/deploy_terraform.yml
vendored
3
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -273,6 +273,9 @@ jobs:
|
|||
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 }}
|
||||
TF_VAR_db_host: ${{ secrets.DEV_DB_HOST }}
|
||||
TF_VAR_db_name: ${{ secrets.DEV_DB_NAME }}
|
||||
TF_VAR_db_port: ${{ secrets.DEV_DB_PORT }}
|
||||
TF_VAR_api_key: ${{ secrets.DEV_API_KEY }}
|
||||
TF_VAR_secret_key: ${{ secrets.DEV_SECRET_KEY }}
|
||||
TF_VAR_domain_name: ${{ secrets.DEV_DOMAIN_NAME }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue