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

[Issue #1535] Adds analytics postgres DB #1536

Merged
merged 5 commits into from
Mar 25, 2024
Merged

[Issue #1535] Adds analytics postgres DB #1536

merged 5 commits into from
Mar 25, 2024

Conversation

coilysiren
Copy link
Collaborator

@coilysiren coilysiren commented Mar 25, 2024

Summary

Fixes #1535

Time to review: 5 mins

Changes proposed

  • Creates the new application folder: infra/analytics
  • Adds the app-config / env-config for the new application folder, mostly copy-pasted
  • Adds infra/analytics/database/main.tf, which creates the database

Notes for Reviewers

This PR contains a lot of boilerplate because of needing the app-config / env-config changes. Sorry for the noise!

Caveats

The new analytics database module has the same security group rules as the old one, which will likely become confusing over time. For example, the new analytics database module has an ingress rule for the Oracle database... which it definitely does not need. We should pull those concerns apart over time.

Testing

image

@@ -0,0 +1,103 @@
# docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copied from infra/api/database/main.tf

@coilysiren coilysiren changed the title Analytics db Adds analytics postgres DB Mar 25, 2024
@coilysiren coilysiren changed the title Adds analytics postgres DB [Issue 1535] Adds analytics postgres DB Mar 25, 2024
@@ -0,0 +1,23 @@
locals {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copied from infra/api/app-config/env-config/environment-variables.tf

@@ -0,0 +1,54 @@
locals {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copied from infra/api/app-config/main.tf

@coilysiren coilysiren marked this pull request as ready for review March 25, 2024 20:37
@coilysiren coilysiren changed the title [Issue 1535] Adds analytics postgres DB [Issue #1535] Adds analytics postgres DB Mar 25, 2024
@coilysiren coilysiren merged commit bbb656b into main Mar 25, 2024
7 checks passed
@coilysiren coilysiren deleted the analytics-db branch March 25, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Delivery Dashboard - Create analytics postgres database
2 participants