Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71263

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • 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)

       

            vlatombe Vincent Latombe
            exitos77 Valerie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: