Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行一个pulumi up命令,但它失败了,因为一些被替换的资源已经在 GCP Kubernetes 仪表板中手动删除。有没有办法忽略这些资源已经被删除并继续更新的事实?
pulumi up
运行pulumi refresh将访问 GCP 资源并更新 Pulumi 中的当前状态文件
pulumi refresh
用于pulumi state delete <urn>通知 pulumi 资源已被删除。
pulumi state delete <urn>
或者,pulumi refresh尝试自动重新同步。
pulumi stack export > mystack最后,您可以使用和手动编辑状态pulumi stack import --file mystack。
pulumi stack export > mystack
pulumi stack import --file mystack