Skip to content

Commit

Permalink
Adding firewall rules for MySQL and PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Feb 8, 2022
1 parent a6e0094 commit fc4ca76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ resource "azurerm_mysql_server" "permanent" {
tags = {
LifetimeInDays = 365
}
}

resource "azurerm_mysql_firewall_rule" "all_azure_resources" {
name = "office"
resource_group_name = azurerm_resource_group.permanent.name
server_name = azurerm_mysql_server.permanent.name
start_ip_address = "0.0.0.0"
end_ip_address = "0.0.0.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ resource "azurerm_postgresql_server" "permanent" {
tags = {
LifetimeInDays = 365
}
}

resource "azurerm_postgresql_firewall_rule" "all_azure_resources" {
name = "All Azure Resources"
resource_group_name = azurerm_resource_group.permanent.name
server_name = azurerm_postgresql_server.permanent.name
start_ip_address = "0.0.0.0"
end_ip_address = "0.0.0.0"
}

0 comments on commit fc4ca76

Please sign in to comment.