generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Updated example folder hierarchy and dependabot.yml
- Loading branch information
Showing
6 changed files
with
113 additions
and
2 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
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
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,39 @@ | ||
locals { | ||
name = "app" | ||
environment = "test" | ||
label_order = ["name", "environment"] | ||
} | ||
|
||
##----------------------------------------------------------------------------- | ||
## Storage module call. | ||
## Here default storage will be deployed i.e. storage account without cmk encryption. | ||
##----------------------------------------------------------------------------- | ||
module "storage" { | ||
source = "../.." | ||
name = local.name | ||
environment = local.environment | ||
default_enabled = true | ||
resource_group_name = "app-test-rg" | ||
location = "Central India" | ||
storage_account_name = "stordtyrey36" | ||
public_network_access_enabled = false | ||
## Storage Container | ||
containers_list = [ | ||
{ name = "app-test", access_type = "private" }, | ||
{ name = "app2", access_type = "private" }, | ||
] | ||
## Storage File Share | ||
file_shares = [ | ||
{ name = "fileshare1", quota = 5 }, | ||
] | ||
## Storage Tables | ||
tables = ["table1"] | ||
## Storage Queues | ||
queues = ["queue1"] | ||
|
||
management_policy_enable = true | ||
#enable private endpoint | ||
virtual_network_id = "/subscriptions/--------------<vnet_id>---------------" | ||
subnet_id = "/subscriptions/--------------<subnet_id>---------------" | ||
log_analytics_workspace_id = "/subscriptions/--------------<log_analytics_workspace_id>---------------" | ||
} |
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
output "storage_account_id" { | ||
value = module.storage.default_storage_account_id | ||
description = "The ID of the storage account." | ||
} | ||
|
||
output "storage_account_name" { | ||
value = module.storage.default_storage_account_name | ||
description = "The name of the storage account." | ||
} | ||
|
||
output "file_shares" { | ||
description = "storage SMB file shares list" | ||
value = module.storage.file_shares | ||
} | ||
|
||
output "tables" { | ||
description = "storage tables list" | ||
value = module.storage.tables | ||
} | ||
|
||
output "queues" { | ||
description = "storage queues list" | ||
value = module.storage.queues | ||
} |