问题描述
我正在为 Akamai 资产试用新的 import functionality。当我在 pulumi 项目中运行 import 命令时,我收到以下错误消息。这个 .edgerc
文件是什么?我该如何创建它?
Type Name Plan Info
+ pulumi:pulumi:Stack vdp-akamai-akamai-import create 1 error
= └─ akamai:index:Property example import 1 error
Diagnostics:
pulumi:pulumi:Stack (vdp-akamai-akamai-import):
error: preview Failed
akamai:index:Property (example):
error: Preview Failed: 1 error occurred:
* Failed to load edgegrid config: unable to load config from environment or .edgerc file: loading config file: open /Users/vcui/.edgerc: no such file or directory
解决方法
从 Akamai 文档来看,它看起来像是一个配置文件,您可以在其中存储凭据。