Skip to content

Commit

Permalink
Merge pull request #1 from shu-unifra/bugfix_push_secrets
Browse files Browse the repository at this point in the history
fix bug of push-secrets
  • Loading branch information
dghelm authored Oct 16, 2024
2 parents 69c6e7c + 5901652 commit ae74202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/setup/push-secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AWSSecretService implements SecretService {
}

private async pushToAWSSecret(content: string, secretName: string): Promise<void> {
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}`
try {
await execAsync(command)
console.log(chalk.green(`Successfully pushed secret: ${this.prefixName}/${secretName}`))
Expand Down

0 comments on commit ae74202

Please sign in to comment.