Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Storage Account Attribute #29

Merged
merged 10 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/org-checkov.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Org Checkov
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_call:

jobs:
check-markdown:
Checkov_Scan:
uses: Coalfire-CF/Actions/.github/workflows/org-checkov.yml@main
2 changes: 1 addition & 1 deletion .github/workflows/org-md-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:
workflow_call:

jobs:
check-markdown:
Markdonw_Lint:
uses: Coalfire-CF/Actions/.github/workflows/org-markdown-lint.yml@main
2 changes: 1 addition & 1 deletion .github/workflows/org-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:
- main

jobs:
create-release:
Create-Release:
uses: Coalfire-CF/Actions/.github/workflows/org-release.yml@main
2 changes: 1 addition & 1 deletion .github/workflows/org-terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ on:
workflow_call:

jobs:
terraform-docs:
Terraform_Docs:
uses: Coalfire-CF/Actions/.github/workflows/org-terraform-docs.yml@main
2 changes: 1 addition & 1 deletion .github/workflows/org-terraform-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '**'

jobs:
terraform-docs:
Terraform_Fmt:
uses: Coalfire-CF/Actions/.github/workflows/org-terraform-fmt.yml@main
with:
terraform_version: '1.9.5'
2 changes: 1 addition & 1 deletion .github/workflows/org-terraform-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- opened

jobs:
create-release:
Terraform_Validate:
uses: Coalfire-CF/Actions/.github/workflows/org-terraform-validate.yml@main
with:
terraform_version: '1.9.5'
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ No requirements.
| <a name="input_identity_ids"></a> [identity\_ids](#input\_identity\_ids) | Specifies a list of User Assigned Managed Identity IDs to be assigned to this Storage Account. | `list(string)` | `null` | no |
| <a name="input_ip_rules"></a> [ip\_rules](#input\_ip\_rules) | List of public IP or IP ranges in CIDR Format. Only IPv4 addresses are allowed. Private IP address ranges are not allowed. | `list(string)` | `null` | no |
| <a name="input_is_hns_enabled"></a> [is\_hns\_enabled](#input\_is\_hns\_enabled) | Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2. | `bool` | `false` | no |
| <a name="input_lifecycle_policies"></a> [lifecycle\_policies](#input\_lifecycle\_policies) | List of lifecycle policies to apply to the storage account. Refer to the documentation for more information. | <pre>list(object({<br> prefix_match = set(string)<br> base_blob = optional(object({<br> tier_to_cool_after_days_since_modification_greater_than = optional(number)<br> tier_to_cool_after_days_since_last_access_time_greater_than = optional(number)<br> tier_to_archive_after_days_since_modification_greater_than = optional(number)<br> tier_to_archive_after_days_since_last_access_time_greater_than = optional(number)<br> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br> delete_after_days_since_modification_greater_than = optional(number)<br> delete_after_days_since_last_access_time_greater_than = optional(number)<br> }))<br> version = optional(object({<br> tier_to_cool_after_days_since_modification_greater_than = optional(number)<br> change_tier_to_archive_after_days_since_creation = optional(number)<br> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br> change_tier_to_cool_after_days_since_creation = optional(number)<br> delete_after_days_since_creation = optional(number)<br> }))<br> snapshot = optional(object({<br> change_tier_to_archive_after_days_since_creation = optional(number)<br> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br> change_tier_to_cool_after_days_since_creation = optional(number)<br> delete_after_days_since_creation_greater_than = optional(number)<br> }))<br> }))</pre> | `null` | no |
| <a name="input_lifecycle_policies"></a> [lifecycle\_policies](#input\_lifecycle\_policies) | List of lifecycle policies to apply to the storage account. Refer to the documentation for more information. | <pre>list(object({<br/> prefix_match = set(string)<br/> base_blob = optional(object({<br/> tier_to_cool_after_days_since_modification_greater_than = optional(number)<br/> tier_to_cool_after_days_since_last_access_time_greater_than = optional(number)<br/> tier_to_archive_after_days_since_modification_greater_than = optional(number)<br/> tier_to_archive_after_days_since_last_access_time_greater_than = optional(number)<br/> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br/> delete_after_days_since_modification_greater_than = optional(number)<br/> delete_after_days_since_last_access_time_greater_than = optional(number)<br/> }))<br/> version = optional(object({<br/> tier_to_cool_after_days_since_modification_greater_than = optional(number)<br/> change_tier_to_archive_after_days_since_creation = optional(number)<br/> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br/> change_tier_to_cool_after_days_since_creation = optional(number)<br/> delete_after_days_since_creation = optional(number)<br/> }))<br/> snapshot = optional(object({<br/> change_tier_to_archive_after_days_since_creation = optional(number)<br/> tier_to_archive_after_days_since_last_tier_change_greater_than = optional(number)<br/> change_tier_to_cool_after_days_since_creation = optional(number)<br/> delete_after_days_since_creation_greater_than = optional(number)<br/> }))<br/> }))</pre> | `null` | no |
| <a name="input_location"></a> [location](#input\_location) | The Azure location/region to create resources in. | `string` | n/a | yes |
| <a name="input_name"></a> [name](#input\_name) | The storage account name | `string` | n/a | yes |
| <a name="input_network_rules_bypass"></a> [network\_rules\_bypass](#input\_network\_rules\_bypass) | Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None. | `list(string)` | `null` | no |
Expand All @@ -132,7 +132,7 @@ No requirements.
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group in which to create the resource in. | `string` | n/a | yes |
| <a name="input_static_website"></a> [static\_website](#input\_static\_website) | Enable and configure static website on the storage account. | `map(string)` | `null` | no |
| <a name="input_storage_containers"></a> [storage\_containers](#input\_storage\_containers) | List of storage containers to create. | `list(string)` | `[]` | no |
| <a name="input_storage_shares"></a> [storage\_shares](#input\_storage\_shares) | List of storage shares to create and their quotas. | <pre>list(object({<br> name = string<br> quota = number<br> }))</pre> | `[]` | no |
| <a name="input_storage_shares"></a> [storage\_shares](#input\_storage\_shares) | List of storage shares to create and their quotas. | <pre>list(object({<br/> name = string<br/> quota = number<br/> }))</pre> | `[]` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | The tags to associate with the resources. | `map(string)` | n/a | yes |
| <a name="input_virtual_network_subnet_ids"></a> [virtual\_network\_subnet\_ids](#input\_virtual\_network\_subnet\_ids) | A list of resource ids for subnets to allow access to the storage account. | `list(string)` | `null` | no |

Expand Down Expand Up @@ -166,4 +166,4 @@ No requirements.

### Copyright

Copyright © 2023 Coalfire Systems Inc.
Copyright © 2023 Coalfire Systems Inc.
2 changes: 1 addition & 1 deletion fileshare.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ resource "azurerm_storage_share" "main" {
name = each.value.name
storage_account_name = azurerm_storage_account.main.name
quota = each.value.quota
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "azurerm_storage_account" "main" {
location = var.location
account_tier = var.account_tier
account_replication_type = var.replication_type
enable_https_traffic_only = true
https_traffic_only_enabled = true
min_tls_version = "TLS1_2"
allow_nested_items_to_be_public = false
account_kind = var.account_kind
Expand Down
Loading