cli-edgeworkers
cli-edgeworkers copied to clipboard
New token format of edgekv_tokens.js incorrect
Hi,
it seems the token format is incorrect, when using the CLI to create the edgekv_tokens.js
file.
akamai edgekv create token my-new-token --save_path=mypath --overwrite --staging=allow --production=allow --ewids=1234 --namespace=myspace+r
var edgekv_access_tokens = {
"myspace" : {
"name": "my-new-token",
"reference" : "xxxxxxxxxxxxxxxxxxxxxxxx"
}
}
export { edgekv_access_tokens };
The field value myspace
will cause the EdgeWorker to fail, with MISSING ACCESS TOKEN. No EdgeKV Access Token defined for namespace "myspace"
Expected field value is namespace-myspace
, as per the documentation in https://techdocs.akamai.com/edgekv/docs/generate-and-retrieve-edgekv-access-tokens#edgeworker-id where the parent key names must start with namespace-
# akamai edgekv --version
1.9.0