Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Apr 3, 2020
1 parent 27c1d53 commit 6703705
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions new-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ func (tmpl *tmplData) bootstrapAPI() error {
green := color.New(color.FgGreen).SprintFunc()
consoleStdOut := "Success! Created API GW project at %s\nInside that directory," +
"you can run several commands:\n\n\t%s\n\t\t" +
"installs dependencies for all the Lambda source code\n\t%s\n\t\t" +
"creates a zip of your code and dependencies " +
"and uploads it to S3\n\t%s\n\t\t" +
"deploys the specified CloudFormation/SAM template by creating and then " +
Expand All @@ -177,6 +178,7 @@ func (tmpl *tmplData) bootstrapAPI() error {

//fmt.Printf("Success! Created API GW project at %s\nInside that directory, you can run several commands:\n\n\t%s\n\t\tcreates a zip of your code and dependencies and uploads it to S3\n\t%s\n\t\tdeploys the specified CloudFormation/SAM template by creating and then executing a change set\n\nHowever I recommend taking a look at the README file first\n\n", green(tmpl.APIProjectName+"/"), green("sam package --template-file apigw.yml --output-template-file out.yaml --s3-bucket Your-S3-bucket"), green("aws cloudformation deploy --template-file ./out.yaml --stack-name my-api-stack --capabilities CAPABILITY_IAM"))
fmt.Printf(consoleStdOut, green(tmpl.APIProjectName+"/"),
green("sam build --template-file apigw.yml"),
green("sam package --template-file apigw.yml --output-template-file out.yaml --s3-bucket Your-S3-bucket"),
green("aws cloudformation deploy --template-file ./out.yaml --stack-name my-api-stack --capabilities CAPABILITY_IAM"))

Expand Down
2 changes: 1 addition & 1 deletion tmpl-readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ pip install --user awscli
$ pip install --user aws-sam-cli
` + "```" + `
### Install Dependencies (if any)
### Build all the Lambda functions
` + "```" + `bash
$ sam build --template-file apigw.yml
` + "```" + `
Expand Down

0 comments on commit 6703705

Please sign in to comment.