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개 답변
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠