Merged in feature/IO-2921-CARSTAR-Canada-Chatter-Integration (pull request #1830)

IO-2921 CHATTER correct secertmanager call from undefined variable to string

Approved-by: Dave Richer
This commit is contained in:
Allan Carr
2024-10-22 15:08:11 +00:00
committed by Dave Richer

View File

@@ -154,7 +154,7 @@ exports.default = async (req, res) => {
async function getPrivateKey() {
// Connect to AWS Secrets Manager
const client = new SecretsManagerClient({ region: "ca-central-1" });
const command = new GetSecretValueCommand({ SecretId: CHATTER_PRIVATE_KEY });
const command = new GetSecretValueCommand({ SecretId: "CHATTER_PRIVATE_KEY" });
logger.log("chatter-get-private-key", "DEBUG", "api", null, null);
try {