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 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions