Build fails with error TypeError: ["fips-aws-global","aws-fips","aws-global"].includes is not a function

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Critical
    • Component/s: aws-java-sdk-plugin
    • None

      I have a Jenkins task that triggers a shell script that builds an AWS task definition for a specified image that was created earlier in ECR. The script installs node packages:
      npm install aws-sdk
      npm install aws-sdk-promise
      npm install mongodb@2.2.30

      The above installation goes without incident, but then the build is throwing an error on the aws-sdk getRealRegion:

      TypeError: ["fips-aws-global","aws-fips","aws-global"].includes is not a function

      at getRealRegion (/home/jenkins/node_modules/aws-sdk/lib/region/utils.js:10:56)

       

            Assignee:
            Vincent Latombe
            Reporter:
            Valerie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: