Created
January 24, 2023 01:24
-
-
Save xximjasonxx/9d97020d7c1e582ba909f46216c0eaf3 to your computer and use it in GitHub Desktop.
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
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "=3.30.0" | |
} | |
} | |
} | |
provider "azurerm" { | |
features {} | |
} | |
resource azurerm_resource_group this { | |
name = "rg-terraform" | |
location = "East US 2" | |
} | |
module "storage-account" { | |
source = "./storage-account" | |
resource_group_name = azurerm_resource_group.this.name | |
} | |
module "image-container" { | |
source = "./storage-account-container" | |
storage_account_resource_group_name = azurerm_resource_group.this.name | |
storage_account_name = module.storage-account.storage_account_name | |
container_name = "images" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment