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 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande