boot_disk 属性冲突中的 Pulumi 导入 GCP 实例错误

问题描述

基本上我已经在 GCP 上创建了一个基本实例并使用了 pulumi 导入命令:

pulumi import gcp:compute/instance:Instance default <project>/<region>/<instance-name>

这是输出

gcp:compute:Instance (default):
error: gcp:compute/instance:Instance resource 'default' has a problem: Computed attribute cannot be set
error: gcp:compute/instance:Instance resource 'default' has a problem: ConflictsWith: "boot_disk.0.disk_encryption_key_raw": conflicts with boot_disk.0.kms_key_self_link
error: gcp:compute/instance:Instance resource 'default' has a problem: Computed attribute cannot be set
error: gcp:compute/instance:Instance resource 'default' has a problem: ConflictsWith: "boot_disk.0.kms_key_self_link": conflicts with boot_disk.0.disk_encryption_key_raw
error: Preview Failed: one or more inputs Failed to validate

基本上它说这两个属性相互冲突,但我什至没有在 boot_disk 属性上设置它们,因此我无法实现导入。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)