qnabot-on-aws icon indicating copy to clipboard operation
qnabot-on-aws copied to clipboard

How to bootstrap with custom StackName

Open pdkn opened this issue 5 years ago • 3 comments

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

pdkn avatar Jan 16 '20 16:01 pdkn

I've got this working by using npm run up -- -- --stack-name MyCustomStackName is there a better way to do this?

pdkn avatar Jan 17 '20 16:01 pdkn

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?

pdkn avatar Jan 17 '20 17:01 pdkn

Pull request would be great and I can merge it in. Thanks!

bobpskier avatar Jan 18 '20 00:01 bobpskier