微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。