python - 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 属性上设置它们,因此我无法实现导入。
解决方案
推荐阅读
- mysql - 如何使用 MySQL 8.0.17 版本合并两个不同表的所有行?
- c - 保存C文件时如何防止VSCode将制表符转换为空格?
- javascript - 如何解决 vuetify 扩展面板的问题?
- javascript - React chakra ui 画布宽度和高度初始化为零并且无法渲染?
- ios - 如何使用委托/协议在 3 个视图之间传递(传递到根视图)
- nginx - Lua 脚本 proxy_pass 不能按预期工作
- apache-flink - AWS Flink (KDA) Rocks 数据库检查点的大小正在增加并且永远不会下降
- batch-file - 为每个 /dir 结果分配数字并要求输入数字
- javascript - 解禁 id 数组 discord.js v12
- python-3.x - 如何在没有 GPU 的 16GB RAM 的计算机上读取大约 50GB 文件(CSV,txt)的大数据