Skip to content

Commit

Permalink
Merge branch 'fix_deprecated_field' into 'master'
Browse files Browse the repository at this point in the history
feat: storage_account_name parameter is deprecated for storage_container resource

See merge request claranet/projects/cloud/azure/terraform/modules/storage-account!98
  • Loading branch information
Shr3ps committed Nov 15, 2024
2 parents edab758 + bdeb347 commit 6158b1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
variables:
TF_MIN_VERSION: "1.8"
AZURERM_PROVIDER_MIN_VERSION: "4.0"
AZURERM_PROVIDER_MIN_VERSION: "4.9"

include:
- project: "claranet/projects/cloud/azure/terraform/ci"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module "storage_account" {
| Name | Version |
|------|---------|
| azurecaf | ~> 1.2.28 |
| azurerm | ~> 4.0 |
| azurerm | ~> 4.9 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.0"
version = "~> 4.9"
}
azurecaf = {
source = "claranet/azurecaf"
Expand Down
2 changes: 1 addition & 1 deletion r-containers.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurerm_storage_container" "main" {
for_each = try({ for c in var.containers : c.name => c }, {})

storage_account_name = azurerm_storage_account.main.name
storage_account_id = azurerm_storage_account.main.id

name = each.key
container_access_type = each.value.container_access_type
Expand Down

0 comments on commit 6158b1e

Please sign in to comment.