Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VisualBean/3754b9b17ae441c5c18fab3dd8f4ee7e to your computer and use it in GitHub Desktop.
Save VisualBean/3754b9b17ae441c5c18fab3dd8f4ee7e to your computer and use it in GitHub Desktop.
// Get reference to the existing secret
let existingSecret = aws.secretsmanager.getSecret({name: "existingSecretName"});
// Create a new secret version
let secretVersion = new aws.secretsmanager.SecretVersion("secretVersion", {
secretId: existingSecret.then(secret => secret.id),
secretString: "newSecretValue",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment