parent
ca8ddca40e
commit
aad151de90
@ -1,2 +0,0 @@
|
|||||||
# build_local_module
|
|
||||||
A module to deploy basic Azure resources
|
|
@ -5,3 +5,7 @@ output "resource_group_name" {
|
|||||||
output "storage_account_name" {
|
output "storage_account_name" {
|
||||||
value = azurerm_storage_account.storage_account.name
|
value = azurerm_storage_account.storage_account.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "primary_web_host" {
|
||||||
|
value = azurerm_storage_account.storage_account.primary_web_host
|
||||||
|
}
|
21
quickstart/101-storage-account-with-static-website/readme.md
Normal file
21
quickstart/101-storage-account-with-static-website/readme.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Azure Storage account with hosted static website
|
||||||
|
|
||||||
|
This template deploys an [Azure Storage Account](https://www.terraform.io/docs/providers/azurerm/r/storage_account.html) with static website hosting enabled.
|
||||||
|
## Terraform resource types
|
||||||
|
|
||||||
|
- [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet)
|
||||||
|
- [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
|
||||||
|
- [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string)
|
||||||
|
- [azurerm_storage_account](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account)
|
||||||
|
- [azurerm_storage_blob](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_blob)
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
| Name | Description | Default |
|
||||||
|
|-|-|-|
|
||||||
|
| `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg |
|
||||||
|
| `resource_group_location` | Location of the resource group. | eastus |
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
To see how to run this example, see [Quickstart: Deploy a static website on Azure Storage using Terraform](https://docs.microsoft.com/azure/storage/quickstart-storage-blob-static-website).
|
@ -1,9 +1,11 @@
|
|||||||
variable "resource_group_location" {
|
variable "resource_group_location" {
|
||||||
default = "eastus"
|
type = string
|
||||||
description = "Location of the resource group."
|
description = "Location of the resource group."
|
||||||
|
default = "eastus"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "resource_group_name_prefix" {
|
variable "resource_group_name_prefix" {
|
||||||
default = "rg"
|
type = string
|
||||||
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
||||||
|
default = "rg"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user