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 Postgres DB and Add DB Variables to Middleware-Api #476

Merged
merged 14 commits into from
Dec 12, 2024

Conversation

marycrawford
Copy link
Collaborator

@marycrawford marycrawford commented Dec 10, 2024

Description

Update database module to include the server id and fqdn and ensure that the credentials of the database can be accessible to the middleware-api module.

  • Also added the azurerm_postgresql_flexible_server_firewall_rule resource for added protection of the communication of the database and middleware app_service.
  • Moved the retention delete provisions to the azurerm_key_vault resource and removing it from the azurerm provider features section.

Related Issues

#478

Checklist

  • [ x ] The title of this PR is descriptive and concise.
  • [ x ] My changes follow the style guidelines of this project.
  • [ x ] I've let the team know about this PR by linking it in the review channel

@marycrawford marycrawford self-assigned this Dec 10, 2024
@marycrawford marycrawford marked this pull request as draft December 10, 2024 20:49
@marycrawford marycrawford changed the title Updates to Postgres DB and Add Middleware Connection Updates to Postgres DB and Add DB Variables to Middleware Dec 11, 2024
@marycrawford marycrawford changed the title Updates to Postgres DB and Add DB Variables to Middleware Update Postgres DB and Add DB Variables to Middleware-Api Dec 11, 2024
@marycrawford marycrawford marked this pull request as ready for review December 11, 2024 07:39
Copy link
Collaborator

@arinkulshi-skylight arinkulshi-skylight left a comment

Choose a reason for hiding this comment

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

LGTM

derekadombek
derekadombek previously approved these changes Dec 11, 2024
ops/terraform/variables.tf Outdated Show resolved Hide resolved
ops/terraform/modules/network/variables.tf Show resolved Hide resolved
resource_group_name = var.resource_group
subnet_id = azurerm_subnet.db-subnet.id

private_service_connection {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is giving me an error on my local. not sure why
Screenshot 2024-12-11 at 3 54 54 PM

Copy link
Collaborator Author

@marycrawford marycrawford Dec 12, 2024

Choose a reason for hiding this comment

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

I removed the azurerm_private_endpoint resource, which can be an optional architectural design if we want a higher level security. To unblock the engineers and continue with e2e testing it is best to remove it. However, the communication of the network for the middleware and database respective delegations and app_settings allow it to communicate privately in the vnet.

Copy link
Collaborator

@arinkulshi-skylight arinkulshi-skylight left a comment

Choose a reason for hiding this comment

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

LG

@marycrawford marycrawford added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 040a1c6 Dec 12, 2024
1 check passed
@marycrawford marycrawford deleted the revise-postgresdb-and-add-middleware-connection branch December 12, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Postgres DB and Add DB Credentials to Middleware-Api Settings
3 participants