We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69c6e7c + 5901652 commit ae74202Copy full SHA for ae74202
src/commands/setup/push-secrets.ts
@@ -33,7 +33,7 @@ class AWSSecretService implements SecretService {
33
}
34
35
private async pushToAWSSecret(content: string, secretName: string): Promise<void> {
36
- const command = `aws secretsmanager create-secret --name "${this.prefixName}/${secretName}" --secret-string '${content}' --region ${this.region}`
+ const command = `aws secretsmanager create-secret --name "${this.prefixName}/${secretName}" --secret-string "${JSON.stringify(content).slice(1, -1)}" --region ${this.region}`
37
try {
38
await execAsync(command)
39
console.log(chalk.green(`Successfully pushed secret: ${this.prefixName}/${secretName}`))
0 commit comments