Created
July 30, 2024 10:08
-
-
Save VisualBean/3754b9b17ae441c5c18fab3dd8f4ee7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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