You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as you can tell, the script is becoming too large and very difficult to maintain and handle
How can I use 1 provider.tf, 1 variables.tf and 1 main.tf to organize all these resources. Please not that some resources depends on the output of others
Any advice will be much appreciated
The text was updated successfully, but these errors were encountered:
I have a terraform script. The hierarchy is as follows:
/root
├─main.tf
├─variables.tf
└─provider.tf
The script is as follows:
Step 1: Define Resource Group
resource "azurerm_resource_group" "rg" {
location = var.zone
name = var.rg-name
}
Step 2: Create database
resource "azurerm_mysql_flexible_server" "mysql" {
resource_group_name = azurerm_resource_group.rg.name
....
}
resource "azurerm_mysql_flexible_server_firewall_rule" "allow-all-ips" {
....
}
Steps 3, 4.....
as you can tell, the script is becoming too large and very difficult to maintain and handle
How can I use 1 provider.tf, 1 variables.tf and 1 main.tf to organize all these resources. Please not that some resources depends on the output of others
Any advice will be much appreciated
The text was updated successfully, but these errors were encountered: