qnabot-on-aws
qnabot-on-aws copied to clipboard
How to bootstrap with custom StackName
When Creating a new QnA bot through AWS CloudFormation console it asks for a custom StackName. Can the same be achieved from Cl? i.e as a config.json param? or npm run bootstrap --stack-name MyCustomBotName
? Thanks
I've got this working by using npm run up -- -- --stack-name MyCustomStackName
is there a better way to do this?
I've edited bin/launch.js up(), down, update(), sure() to
var customStackName = options.stackName || config.stackName
var StackName= customStackName ? customStackName : name(stack,{inc:true})
and now can also add to config.json
{
...
"devEmail": "[email protected]",
"namespace": "dev",
"stackName": "CustomStackName"
}
if you think it's of any use can put in a pull request?
Pull request would be great and I can merge it in. Thanks!