-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc4a5fc
commit 3127b88
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#define the resources | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = var.resource_group_name | ||
location = var.location | ||
} | ||
|
||
resource "azurerm_storage_account" "example" { | ||
name = var.storage_account_name | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
account_tier = "Standard" | ||
account_replication_type = "LRS" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#define the outputs | ||
|
||
output "resource_group_id" { | ||
value = azurerm_resource_group.example.id | ||
} | ||
|
||
output "storage_account_id" { | ||
value = azurerm_storage_account.example.id | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#define the variables | ||
|
||
variable "resource_group_name" { | ||
description = "The name of the resource group" | ||
default = "example-resources" | ||
} | ||
|
||
variable "storage_account_name" { | ||
description = "The name of the storage account" | ||
default = "examplestorageaccount" | ||
} | ||
|
||
variable "location" { | ||
description = "The location for all resources." | ||
default = "East US" | ||
} |