Last active
August 20, 2020 11:11
-
-
Save jibinpb/1fc9ec28e95bd1ccfa48a2e32b91f8cc to your computer and use it in GitHub Desktop.
`allow_blob_public_access` is not reflecting while upgrading provider version 1.44 to 2.23
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
terraform { | |
required_version = ">= 0.11" | |
required_providers { | |
azurerm = "~> 2.20" | |
# azurerm = "~> 1.44" | |
} | |
} | |
provider "azurerm" { | |
features {} | |
} | |
data "azurerm_resource_group" "example" { | |
name = "test-rg" | |
} | |
resource "azurerm_storage_account" "example" { | |
name = "teststoragexxx" | |
resource_group_name = data.azurerm_resource_group.example.name | |
location = data.azurerm_resource_group.example.location | |
account_tier = "Standard" | |
account_replication_type = "LRS" | |
enable_https_traffic_only = true | |
## ADDED | |
allow_blob_public_access = false | |
network_rules { | |
default_action = "Deny" | |
bypass = ["AzureServices"] | |
} | |
} | |
# terraform plan -out allow_public_access_1.44.plan | |
# terraform show "allow_public_access_1.44.plan" | |
# terraform apply "allow_public_access_1.44.plan" | |
# terraform plan -out allow_public_access_2.20.plan | |
# terraform show "allow_public_access_2.20.plan" | |
# terraform apply "allow_public_access_2.20.plan" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment