Closed TheMarex closed 7 years ago
Sorry, directed @TheMarex to open a ticket here about something else. This is likely a program bug.
I think this is a bug in cfn-config as this is the variable that changed. It works with 2.6.0 which uses 2.2.1.
Since this was a minor version bump in mbx-cli it should never break user code as per semantic versioning.
The line of code in your stack trace is the code that calls the function exported by your template. Higher in the stack trace are errors from your application, in cloudformation/shards.js
Without more info I also have to agree with @karenzshea that this looks like something downstream.
Either mapbox-cli or cnf-config changed behavior between 2.6.0 and 2.6.1, may it be intentional (this would have needed a major version bump) or unintentional (this would mean it is a bug.)
If you look at the corresponding code in shards.js
// these params are supplied by cfn-config on deploy
if (params.name === undefined) {
return cb(shardError('params.name required.'));
}
This points to cnf-config
as even the comment indicates.
Fix is underway downstream in mbxcli.
I'm seeing this error when attempting a deploy with latest (2.6.1, 2.6.0 works) mapbox-cli on
api-directions
.