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 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions