Open kortac opened 4 years ago
Applying this patch file fixes the error:
diff --git a/node_modules/serverless-aws-alias/lib/createAliasStack.js b/node_modules/serverless-aws-alias/lib/createAliasStack.js
index adadc43..2a674f0 100644
--- a/node_modules/serverless-aws-alias/lib/createAliasStack.js
+++ b/node_modules/serverless-aws-alias/lib/createAliasStack.js
@@ -16,7 +16,7 @@ module.exports = {
this._serverless.cli.log(`Creating Alias Stack '${this._alias}' ...`);
const stackName = `${this._provider.naming.getStackName()}-${this._alias}`;
- let stackTags = { STAGE: this._options.stage, ALIAS: this._alias };
+ let stackTags = { STAGE: this._options.stage, ALIAS: this._alias.toString() };
// Merge additional stack tags
if (_.isObject(this._serverless.service.provider.stackTags)) {
diff --git a/node_modules/serverless-aws-alias/lib/updateAliasStack.js b/node_modules/serverless-aws-alias/lib/updateAliasStack.js
index 15e7ec2..76b0c80 100644
--- a/node_modules/serverless-aws-alias/lib/updateAliasStack.js
+++ b/node_modules/serverless-aws-alias/lib/updateAliasStack.js
@@ -13,7 +13,7 @@ module.exports = {
this._serverless.cli.log('Creating alias stack...');
const stackName = `${this._provider.naming.getStackName()}-${this._alias}`;
- let stackTags = { STAGE: this._options.stage, ALIAS: this._alias };
+ let stackTags = { STAGE: this._options.stage, ALIAS: this._alias.toString() };
const templateUrl = `https://s3.amazonaws.com/${this.bucketName}/${this._serverless.service.package.artifactDirectoryName}/compiled-cloudformation-template-alias.json`;
// Merge additional stack tags
if (_.isObject(this._serverless.service.provider.stackTags)) {
@@ -49,7 +49,7 @@ module.exports = {
this.serverless.cli.log('Updating alias stack...');
const stackName = `${this._provider.naming.getStackName()}-${this._alias}`;
- let stackTags = { STAGE: this._options.stage, ALIAS: this._alias };
+ let stackTags = { STAGE: this._options.stage, ALIAS: this._alias.toString() };
// Merge additional stack tags
if (_.isObject(this._serverless.service.provider.stackTags)) {
I got the same issues too on serverless-aws-alias 1.8.0. think this bug will affect not only me and issues writer but also many users using 1.8.0 version. ðŸ˜
@SpaceHeroGuide, how thinking about considering opening a pull request for it?
Same issue
When deploying masterAlias with command
it fails with the following error:
Reason for this is because serverless-aws-alias tries to add a tag with a boolean value:
Versions: serverless 1.61.2 serverless-aws-alias 1.8.0 serverless-domain-manager 4.0.0