"protected_settings" 在 Terraform 配置中有什么用
What are "protected_settings" used for in a Terraform config
我看到 protected_settings
在一些示例中使用,我在一些 Terraform 文档中看到它们,但我一直无法找到关于它们用途的良好解释。
我不确定它们是否有额外的用途,但是在 azurerm_virtual_machine_extension context they map straight to an Azure Resource Manager concept described in this post.
引用
Settings vs. ProtectedSettings
All of these settings will be saved in a settings text file on your VM.
Properties under ‘settings’ are considered public properties because they will not be encrypted in the settings text file.
Properties under ‘protectedSettings’ will be encrypted with a certificate and will not be shown in plain text in this file on your VM.
我看到 protected_settings
在一些示例中使用,我在一些 Terraform 文档中看到它们,但我一直无法找到关于它们用途的良好解释。
我不确定它们是否有额外的用途,但是在 azurerm_virtual_machine_extension context they map straight to an Azure Resource Manager concept described in this post.
引用
Settings vs. ProtectedSettings
All of these settings will be saved in a settings text file on your VM.
Properties under ‘settings’ are considered public properties because they will not be encrypted in the settings text file.
Properties under ‘protectedSettings’ will be encrypted with a certificate and will not be shown in plain text in this file on your VM.