首页 > 解决方案 > Pulumi Import GCP Instance Error in boot_disk 属性冲突

问题描述

基本上我已经在 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 属性上设置它们,因此我无法实现导入。

标签: pythongoogle-cloud-platformpulumi

解决方案


推荐阅读