-
Notifications
You must be signed in to change notification settings - Fork 0
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
fab5779
commit afdccee
Showing
5 changed files
with
67 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,18 @@ | ||
terraform { | ||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = "2.74.0" | ||
} | ||
} | ||
} | ||
|
||
provider "azurerm" { | ||
# Configuration options | ||
/* | ||
Multi line comment | ||
*/ | ||
features {} | ||
|
||
|
||
} |
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 @@ | ||
output "storageid" { | ||
description = "This is the id of the provisioned storage accoutn" | ||
value = azurerm_storage_account.vishnustorage.id | ||
} | ||
|
||
output "StorageTier" { | ||
description = "The tier of the storage account" | ||
value = azurerm_storage_account.vishnustorage.access_tier | ||
} |
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,8 @@ | ||
resource "azurerm_storage_account" "vishnustorage" { | ||
name = var.storageaccountname | ||
resource_group_name = "TerraformRG" | ||
location = "East US" | ||
access_tier = var.tier | ||
account_replication_type = "LRS" | ||
account_tier = "Standard" | ||
} |
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,18 @@ | ||
variable "resourcegroupname" { | ||
description = "The resource group name" | ||
} | ||
|
||
variable "resourcegplocation" { | ||
description = "Location of RG" | ||
default = "East US" | ||
} | ||
|
||
variable "storageaccountname" { | ||
description = "This is the name of storage accoutn to be created" | ||
default = "vishnustorageaccount" | ||
} | ||
|
||
variable "tier" { | ||
description = "Trier of the storage account" | ||
default = "Hot" | ||
} |
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 @@ | ||
module "storagemodule" { | ||
source = "./modules/storageaccount" | ||
storageaccountname = "vishnustorageaccount" | ||
resourcegroupname = "TerraformRG" | ||
} | ||
|
||
output "storageidoutput" { | ||
value = module.storagemodule.storageid | ||
description = "The id of the storage account" | ||
} | ||
|
||
output "Storagetier" { | ||
value = module.storagemodule.StorageTier | ||
} |