DataPower

 View Only
  • 1.  import node modules into DataPower file system

    Posted Mon February 21, 2022 09:15 PM
    Edited by Suresh U Mon February 21, 2022 09:22 PM
    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
    ------------------------------


  • 2.  RE: import node modules into DataPower file system

    Posted Thu February 24, 2022 08:16 AM
    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/
    ------------------------------



  • 3.  RE: import node modules into DataPower file system

    Posted Thu February 24, 2022 10:24 AM
    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
    ------------------------------



  • 4.  RE: import node modules into DataPower file system

    Posted Thu February 24, 2022 10:42 AM

    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/
    ------------------------------