如何禁用对Azure存储帐户的公共访问,但仍然可以从cloudshell访问。
我所拥有和工作的东西:
terraform {
required_version = ">= 1.2.4"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 2.98.0"
}
}
# To store the state in a storage account
# Benefit=working with team and if local shell destroyed -> state=lost)
backend "azurerm" {
resource_group_name = "RG-Telco-tf-statefiles"
storage_account_name = "telcostatefiles"
container_name = "tf-statefile-app-1"
key = "terraform.tfstate"
}
}这工作得很好。但是,如果我限制存储帐户中的公共访问,我的"Azure Cloudshell“将不再拥有状态文件的权限。
我如何使它工作,在这种情况下,最好的安全最佳实践是什么?
发布于 2022-07-23 14:33:33
我想,这就是你所需要的。
设置之后,您可以制定一个网络限制规则,并且可以允许云shell虚拟网络。
其他一些最佳做法:
https://stackoverflow.com/questions/73090033
复制相似问题