The link only talks about converting their examples to CommonJS.
But you want to use their SDK, and I don't know whether that follows CommonJS rules.
You can try and see what happens.
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
https://stamm-wilbrandt.de/en/blog/------------------------------
Original Message:
Sent: Thu February 24, 2022 10:24 AM
From: Suresh U
Subject: import node modules into DataPower file system
Thank you, I see below link, do you think this will work
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/sdk-example-javascript-syntax.html
------------------------------
Suresh U
Original Message:
Sent: Thu February 24, 2022 08:15 AM
From: Hermann Stamm-Wilbrandt
Subject: import node modules into DataPower file system
I don't know whether aws-sdk-js is CommonJS compliant or not.
Find what is supported in DataPower GatewayScript here:
https://www.ibm.com/docs/en/datapower-gateway/2018.4?topic=gateway-programming-model-gatewayscript
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
https://stamm-wilbrandt.de/en/blog/
Original Message:
Sent: Mon February 21, 2022 09:14 PM
From: Suresh U
Subject: import node modules into DataPower file system
Can we import custom node modules into DataPower ? We want to connect to AWS Managed Kafka cluster( AWS MSK) from DataPower / APIC that is protected with IAM policies, Can we do this in DataPower.
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/installing-jssdk.html
https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html
https://github.com/aws/aws-sdk-js
------------------------------
Suresh U
------------------------------