@villedemontreal/workit-stepfunction-client
Version:
Camunda BPM client for WorkIt that works with Camunda platform powered by TypeScript
26 lines • 1.06 kB
JavaScript
;
/*
* Copyright (c) 2025 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const workit_core_1 = require("@villedemontreal/workit-core");
const identifiers_1 = require("./constants/identifiers");
const env = process.env;
const configBase = {
region: env.AWS_REGION || '',
credentials: {
accessKeyId: env.AWS_ACCESS_KEY_ID || '',
secretAccessKey: env.AWS_SECRET_ACCESS_KEY || '',
},
};
const config = {
...configBase,
queueUrl: env.AWS_SQS_QUEUE_URL || '',
// https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/StepFunctions.html
apiVersion: env.AWS_API_VERSION || env.AWS_STEP_FUNCTION_API_VERSION || '2016-11-23',
waitTimeSeconds: Number(env.AWS_SQS_WAIT_TIME_SECONDS) || undefined,
};
workit_core_1.kernel.bind(identifiers_1.SERVICE_IDENTIFIER.stepfunction_config).toConstantValue(config);
//# sourceMappingURL=container.js.map