Skip to content

Commit

Permalink
feat: Added variable for cdn sa public items (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamari90 authored Sep 21, 2023
1 parent 70beb01 commit 27835c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions cdn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Storage account
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | n/a | `string` | n/a | yes |
| <a name="input_storage_access_tier"></a> [storage\_access\_tier](#input\_storage\_access\_tier) | n/a | `string` | `"Hot"` | no |
| <a name="input_storage_account_kind"></a> [storage\_account\_kind](#input\_storage\_account\_kind) | n/a | `string` | `"StorageV2"` | no |
| <a name="input_storage_account_nested_items_public"></a> [storage\_account\_nested\_items\_public](#input\_storage\_account\_nested\_items\_public) | (Optional) reflects to property 'allow\_nested\_items\_to\_be\_public' on storage account module | `bool` | `true` | no |
| <a name="input_storage_account_replication_type"></a> [storage\_account\_replication\_type](#input\_storage\_account\_replication\_type) | n/a | `string` | `"GRS"` | no |
| <a name="input_storage_account_tier"></a> [storage\_account\_tier](#input\_storage\_account\_tier) | n/a | `string` | `"Standard"` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(string)` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion cdn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "cdn_storage_account" {
blob_versioning_enabled = true
resource_group_name = var.resource_group_name
location = var.location
allow_nested_items_to_be_public = true
allow_nested_items_to_be_public = var.storage_account_nested_items_public
public_network_access_enabled = true

advanced_threat_protection = var.advanced_threat_protection_enabled
Expand Down
7 changes: 7 additions & 0 deletions cdn/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,10 @@ variable "advanced_threat_protection_enabled" {
type = bool
default = false
}


variable "storage_account_nested_items_public" {
type = bool
default = true
description = "(Optional) reflects to property 'allow_nested_items_to_be_public' on storage account module"
}

0 comments on commit 27835c8

Please sign in to comment.