Created
July 4, 2021 01:19
-
-
Save xximjasonxx/ab1da6e20e09a315affdd7b58af813ed 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
resource "azurerm_storage_account" "this" { | |
name = "storage${var.name}jx02" | |
resource_group_name = var.rg_name | |
location = var.rg_location | |
account_tier = "Standard" | |
account_kind = "StorageV2" | |
account_replication_type = "LRS" | |
network_rules { | |
default_action = "Deny" | |
bypass = [ "AzureServices" ] | |
} | |
} | |
# outputs | |
output "account_id" { | |
value = azurerm_storage_account.this.id | |
} | |
output "account_connection_string" { | |
value = azurerm_storage_account.this.primary_connection_string | |
} | |
output "account_name" { | |
value = azurerm_storage_account.this.name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment