-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): enable secret init #2335
Conversation
internal/pkg/cli/secret_init.go
Outdated
"sort" | ||
"strings" | ||
goTemplate "text/template" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goTemplate "text/template" | |
txttemplate "text/template" |
https://rakyll.org/style-packages/#renames-should-follow-the-same-rules
tmpl, _ := goTemplate.New("secretInitOutput").Parse(templateRaw) | ||
|
||
log.Infoln("You can refer to these secrets from your manifest file by editing the `secrets` section.") | ||
return tmpl.Execute(os.Stdout, secretInitOutput{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
internal/pkg/cli/secret_init.go
Outdated
/code $ copilot secret init | ||
Create a secret named db-password. | ||
You will be prompted for the values you want for db-password in each existing environments. | ||
/code $ copilot secret init --name db-password | ||
Create a secret named db-password with values you want in each existing environments. | ||
You will be prompted for the values you want for db-password in each existing environments. | ||
/code $ copilot secret init --name db-password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this repeated twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed! I also addressed your feedback from last round (sorry I missed your comment somehow), shortening the example description language so that they are more terse. However I removed the one with --values
flag since we want to encourage the user to use guided/input file so that the values are not visible in shell history.
Resolves aws#1920 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Resolves #1920
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.