Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The use of Terraform variables introduce some complexity. First, in the Terraform generated resources some data will be obtained by other resources, others from variables. Also, this require to expliciting dependencies between Terraform resources, which can introduce errors in the apply process. Removed variables files and switched to Terraform resource references where needed, so Terraform can manage resource dependencies autonomously.
- Loading branch information
Matteo Cappadonna
committed
May 8, 2020
1 parent
ccb63dd
commit 68b672d
Showing
10 changed files
with
26 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resource "azurerm_resource_group" "{{ azure_resource_group_name }}" { | ||
name = var.resource_group_name | ||
location = var.location | ||
name = "{{ azure_resource_group_name }}" | ||
location = "{{ azure_location }}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
resource "azurerm_storage_account" "{{ azure_storage_account_name }}" { | ||
depends_on = [azurerm_resource_group.{{ azure_resource_group_name }}] | ||
name = "{{ azure_storage_account_name }}" | ||
resource_group_name = var.resource_group_name | ||
location = var.location | ||
resource_group_name = azurerm_resource_group.{{ azure_resource_group_name }}.name | ||
location = azurerm_resource_group.{{ azure_resource_group_name }}.location | ||
account_replication_type = "LRS" | ||
account_tier = "Standard" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
resource "azurerm_storage_container" "{{ azure_storage_container_name }}" { | ||
depends_on = [azurerm_resource_group.{{ azure_resource_group_name }}] | ||
name = "{{ azure_storage_container_name }}" | ||
storage_account_name = azurerm_storage_account.{{ azure_storage_account_name }}.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.