2020-10-07 19:29:33 +00:00
|
|
|
config storageAccountNameParam string {
|
2023-03-21 14:01:16 +00:00
|
|
|
description = "The name of the storage account"
|
2020-10-07 19:29:33 +00:00
|
|
|
}
|
|
|
|
|
2020-10-06 05:57:52 +00:00
|
|
|
config resourceGroupNameParam string {
|
2023-03-21 14:01:16 +00:00
|
|
|
description = "The name of the resource group"
|
2020-10-06 05:57:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resourceGroupVar = invoke("azure:core/getResourceGroup:getResourceGroup", {
|
|
|
|
name = resourceGroupNameParam
|
|
|
|
})
|
|
|
|
|
|
|
|
config locationParam string {
|
|
|
|
default = resourceGroupVar.location
|
|
|
|
}
|
|
|
|
|
2020-10-07 19:29:33 +00:00
|
|
|
config storageAccountTierParam string {
|
|
|
|
default = "Standard"
|
|
|
|
}
|
|
|
|
|
|
|
|
config storageAccountTypeReplicationParam string {
|
|
|
|
default = "LRS"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource storageAccountResource "azure:storage/account:Account" {
|
|
|
|
name = storageAccountNameParam
|
|
|
|
accountKind = "StorageV2"
|
|
|
|
location = locationParam
|
|
|
|
resourceGroupName = resourceGroupNameParam
|
|
|
|
accountTier = storageAccountTierParam
|
|
|
|
accountReplicationType = storageAccountTypeReplicationParam
|
|
|
|
}
|
|
|
|
|
|
|
|
output storageAccountNameOut {
|
|
|
|
value = storageAccountResource.name
|
|
|
|
}
|