Created
April 17, 2022 09:36
-
-
Save Zaid-Ajaj/6ce662ab7a850dc2648d612a5b699594 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
config storageAccountNameParam string { | |
} | |
config resourceGroupNameParam string { | |
} | |
resourceGroupVar = invoke("azure:core/getResourceGroup:getResourceGroup", { | |
name = resourceGroupNameParam | |
}) | |
config locationParam string { | |
default = resourceGroupVar.location | |
} | |
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment