Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Last active January 24, 2023 01:34
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/96af3673d8ea065cb1f7ac2f72452563 to your computer and use it in GitHub Desktop.
Save xximjasonxx/96af3673d8ea065cb1f7ac2f72452563 to your computer and use it in GitHub Desktop.
terraform {
}
variable storage_account_resource_group_name {
type = string
}
variable storage_account_name {
type = string
}
variable container_name {
type = string
}
data azurerm_storage_account sa {
name = var.storage_account_name
resource_group_name = var.storage_account_resource_group_name
}
resource azurerm_storage_container container {
name = var.container_name
storage_account_name = data.azurerm_storage_account.sa.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment