Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Terraform to handle env vars for db connection in azure_queue_service.js #52

Open
rudokemper opened this issue May 7, 2024 · 0 comments

Comments

@rudokemper
Copy link
Member

Per @IamJeffG:

We can do something like this:

  1. add a reference to the postgresql DB to the terraform module (after Terraform module to deploy on Azure #33 is merged)
  2. in the terraform module, define an env variable to the container app containing a connection string to the database; this string is derived from the DB's terraform resource's properties.
  3. Javascript code reads the env variable to connect to the DB.

Step 2 and 3 are quite like https://github.com/ConservationMetrics/guardianconnector-views/blob/cc9bd86b31ac6237ff9ede9daf8cdcf31c3fea7c/api/index.ts#L22-L31

We need to add CONNECTION_STRING and DB_TABLE vars.

@rudokemper rudokemper added MVP and removed MVP labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant