Amazon connect chat API session starts without the use of AWS credentials

0

Currently, our approach updating the AWS configuration and initiating the amazon connect session with nodejs as follows:

const AWS = require("aws-sdk");
AWS.config.update({
  accessKeyId: "accessKeyId",
  secretAccessKey: "secretAccessKey",
  region: "region"});

new AWS.connect() and initiate a new AWS.connectParticipant()

Our objective is to avoid using the AWS SDK for initiating the customer side chat session to send and receive messages. Instead, we are interested in utilizing the REST API directly, using the InstanceId and ContactFlowId.

Is there any way to achieve this goal?

  • What is the benefit of not using the aws-sdk?

1 Antwort
1

You can follow the practice of using temporary credentials using this link https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html#RequestWithSTS

So you can request these temporary token/keys instead of a putting a permanent accessKey and secretAccessKey

You will still need to use AWS SDK to generate them to establish ConnectParticipant to establish a chat.

profile pictureAWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen