Reputation: 61
I can create and use an AWS SecretsManager store Key value pair. Let's say you want to raise an error if the key does not exist inside AWS SecretsManager.
const secretKey = "keyNameInAWS";
//Below is used for any resource that takes SecretValue as an input
SecretValue.secretsManager(secretKey, { jsonField: secretKey })
Should i try to find the secrets at the start of the script and then use typescript to kill the script or create a CfnCondition and have the main stack depend on the Secrets to exist??
Upvotes: 4
Views: 2953