forked from ContainerSolutions/terraform-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
42 lines (36 loc) · 1.5 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Summary: A simple Azure Storage Account
# Documentation: https://www.terraform.io/docs/language/settings/index.html
terraform {
required_version = ">= 1.0.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 2.0"
}
}
}
# Documentation: https://www.terraform.io/docs/language/values/variables.html
variable "azure_subscription_id" {
type = string
}
# Documentation: https://www.terraform.io/docs/language/providers/requirements.html
# Documentation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
provider "azurerm" {
features {}
subscription_id = var.azure_subscription_id
}
# Resource Group
# Documentation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group
resource "azurerm_resource_group" "changeme_simple_storage_account_resource_group" {
name = "changeme-simple-storage-account-resource-group"
location = "West Europe"
}
# Storage Account within the Resource Group
# Documentation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account
resource "azurerm_storage_account" "changeme_simple_storage_account" {
name = "changemesimplesaname"
resource_group_name = azurerm_resource_group.changeme_simple_storage_account_resource_group.name
location = azurerm_resource_group.changeme_simple_storage_account_resource_group.location
account_tier = "Standard"
account_replication_type = "LRS"
}