Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created January 24, 2023 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/9d97020d7c1e582ba909f46216c0eaf3 to your computer and use it in GitHub Desktop.
Save xximjasonxx/9d97020d7c1e582ba909f46216c0eaf3 to your computer and use it in GitHub Desktop.
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