Skip to content

Commit 083e5f3

Browse files
committed
fix: add console messages for Secrets Manager operations
Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>
1 parent 6f81696 commit 083e5f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aws/cli-installer/src/aws.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ async function storeMasterPassword(region, pipelineName, password) {
7070
SecretString: password,
7171
Description: `OpenSearch master password for ${pipelineName}`,
7272
}));
73+
printSuccess(`Master password stored in Secrets Manager (${secretName})`);
7374
} catch (e) {
7475
if (e.name === 'ResourceExistsException') {
75-
// Update existing
7676
const { PutSecretValueCommand } = await import('@aws-sdk/client-secrets-manager');
7777
await sm.send(new PutSecretValueCommand({ SecretId: secretName, SecretString: password }));
78+
printSuccess(`Master password updated in Secrets Manager (${secretName})`);
7879
} else throw e;
7980
}
8081
}

0 commit comments

Comments
 (0)