Skip to content

Commit

Permalink
fix: Updated example folder hierarchy and dependabot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
13archit committed Jul 6, 2023
1 parent ce51387 commit 6883a83
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 2 deletions.
51 changes: 50 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,64 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 3
assignees:
- "clouddrove-ci"
reviewers:
- "approvers"

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "_example/basic" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "_example/default_storage" # Location of package manifests
directory: "_example/complete" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3

- package-ecosystem: "terraform" # See documentation for possible values
directory: "_example/storage_with_cmk" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
assignees:
- "clouddrove-ci"
# Add reviewer
reviewers:
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
repos:

- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.12 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
Expand Down
39 changes: 39 additions & 0 deletions _example/basic/example.tf
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.
24 changes: 24 additions & 0 deletions _example/complete/outputs.tf
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
}

0 comments on commit 6883a83

Please sign in to comment.