Roh*_*hit 5 azure terraform azure-keyvault
我正在尝试创建已存在的新版本的密钥保管库机密。但当秘密已经存在时,使用下面的代码时它总是给我错误。有什么方法可以创建新版本的 Secret.
\nresource "azurerm_key_vault_secret" "example" {\n name = "test"\n value = random_password.password.result\n key_vault_id = data.azurerm_key_vault.keyvault.id\n}\nRun Code Online (Sandbox Code Playgroud)\n我总是收到此错误\n\xe2\x94\x82 Error: A resource with the ID "https://dev-kv.vault.azure.net/secrets/test/9d2108c9695a366" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_key_vault_secret" for more information.
Terraform正在使用状态文件,不幸的是它不支持upsert。所以你这里有 3 个选择。
| 归档时间: |
|
| 查看次数: |
3603 次 |
| 最近记录: |