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

add sanctuary db and user resources to terraform #106

Merged
merged 2 commits into from
Feb 24, 2024

Conversation

critch646
Copy link
Collaborator

Problem
Sanctuary does not have a db and user for the api to use.

Solution

  • Add a db and user resources for sanctuary in terraform
  • Add environment variables for the sanctuary db and user to the cloud run service
  • Updated application backend with storage bucket and prefix
  • updated .env-example with new environment variables

Ticket URL
https://mediform.atlassian.net/browse/MEDI-60

Documentation
NA

Tests Run

  • terraform plan

Problem
Sanctuary does not have a db and user for the api to use.

Solution
- Add a db and user resources for sanctuary in terraform
- Add environment variables for the sanctuary db and user to the cloud run service
- Updated application backend with storage bucket and prefix
- updated .env-example with new environment variables

Ticket URL
https://mediform.atlassian.net/browse/MEDI-60

Documentation
NA

Tests Run
- `terraform plan`
@critch646 critch646 requested a review from MadelaineJ February 24, 2024 16:49
env {
name = "POSTGRES_HOST"
value = var.POSTGRES_HOST
}
env {
name = "POSTGRES_DB"
value = local.POSTGRES_DB
}
env {
name = "POSTGRES_DB"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this correct? or should it be POSTGRES_SANCTUARY_DB

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to break production we would keep it as is.

@critch646 critch646 merged commit 4b7c984 into main Feb 24, 2024
@critch646 critch646 deleted the zeke/dev/sanct-db-terrorform branch February 24, 2024 21:29
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

Successfully merging this pull request may close these issues.

2 participants