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

feat: Add postgres server to Azure deployment #12

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions azure/infracost-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ resource_usage:
azurerm_linux_virtual_machine.my_vm:
os_disk:
monthly_disk_operations: 2000000 # Number of disk operations (writes, reads, deletes) using a unit size of 256KiB.
azurerm_postgresql_flexible_server.gp:
additional_backup_storage_gb: 5000
9 changes: 9 additions & 0 deletions azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,12 @@ resource "azurerm_function_app" "my_function" {
storage_account_name = "fakestorageaccountname"
storage_account_access_key = "fake_storage_account_access_key"
}

resource "azurerm_postgresql_flexible_server" "gp" {
name = "example-psqlflexibleserver"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
storage_mb = 32768

sku_name = "GP_Standard_D4s_v3"
}