如何使用 Terraform COde 下载上传到 Azure 存储容器的 filename.xml

问题描述 投票:0回答:0

能够使用下面的方法上传 blob。寻找类似的 TF 代码来获取文件的内容(或者)使用 Terraform 代码下载文件

resource "azurerm_storage_blob" "example" {
  name                   = "example-blob"
  storage_account_name   = azurerm_storage_account.example.name
  storage_container_name = azurerm_storage_container.example.name
  type                   = "Block"
  source                 = "/path/to/local/file.txt"
  
  metadata = {
    "foo" = "bar"
    "hello" = "world"
  }
}
azure-devops terraform blob terraform-provider-azure blobstore
© www.soinside.com 2019 - 2024. All rights reserved.