Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5322

AWS Lambda Test Failures

    • Type: Icon: Build Failure Build Failure
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 5.7.0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      https://spruce.mongodb.com/task/mongo_node_driver_next_rhel8_test_lambda_test_lambda_aws_auth_example_patch_e5e3c93611fed807377db943996a6242ab6b696b_6477917a850e615ebac7c30b_23_05_31_18_27_06/logs?execution=0&sortBy=STATUS&sortDir=ASC

      Env variable change appears to be the issue.

      [2023/05/31 18:35:35.596]   AWS Lambda Examples
      [2023/05/31 18:35:35.596]     #handler
      [2023/05/31 18:35:35.596]       when using aws environment variable authentication
      [2023/05/31 18:35:35.635]         1) "before all" hook for "returns the databases"
      [2023/05/31 18:35:35.635]   0 passing (40ms)
      [2023/05/31 18:35:35.635]   1 failing
      [2023/05/31 18:35:35.635]   1) AWS Lambda Examples
      [2023/05/31 18:35:35.635]        #handler
      [2023/05/31 18:35:35.635]          when using aws environment variable authentication
      [2023/05/31 18:35:35.635]            "before all" hook for "returns the databases":
      [2023/05/31 18:35:35.635]      MongoServerError: Could not find user "arn:aws:iam::557821124784:user/authtest_fargate_user" for db "$external"
      [2023/05/31 18:35:35.635]       at Connection.onMessage (lib/cmap/connection.js:202:26)
      [2023/05/31 18:35:35.635]       at MessageStream.<anonymous> (lib/cmap/connection.js:61:60)
      [2023/05/31 18:35:35.635]       at processIncomingData (lib/cmap/message_stream.js:124:16)
      [2023/05/31 18:35:35.635]       at MessageStream._write (lib/cmap/message_stream.js:33:9)
      [2023/05/31 18:35:35.635]       at writeOrBuffer (internal/streams/writable.js:358:12)
      [2023/05/31 18:35:35.635]       at MessageStream.Writable.write (internal/streams/writable.js:303:10)
      [2023/05/31 18:35:35.635]       at Socket.ondata (internal/streams/readable.js:731:22)
      [2023/05/31 18:35:35.635]       at addChunk (internal/streams/readable.js:293:12)
      [2023/05/31 18:35:35.635]       at readableAddChunk (internal/streams/readable.js:267:9)
      [2023/05/31 18:35:35.635]       at Socket.Readable.push (internal/streams/readable.js:206:10)
      [2023/05/31 18:35:35.635]       at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
      

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: