akamaipulumi

Failed to load edgegrid config when importing Akamai property into Pulumi


I am trying out the new import functionality for an Akamai property. When I run the import command inside a pulumi project, I get the error message below. What is this .edgerc file and how can I create it?

    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

Solution

  • From the Akamai documentation, it looks like it's used as a config file that you can store your credentials in.

    Documentation found here