Skip to content

Adding sessionToken as an optional parameter #129

Description

@iranianpep

Is your feature request related to a problem? Please describe.
If the user uses temporary security credentials the call must include a session token. In the current implementation, this does not exist and user gets InvalidClientTokenId: The security token included in the request is invalid. error message.

Describe the solution you'd like
Adding an optional parameter called sessionToken:

const createSQS = ({ region, accessKeyId, secretAccessKey, sessionToken }) =>
  new AWS.SQS({
    apiVersion: '2012-11-05',
    region,
    accessKeyId,
    secretAccessKey,
    sessionToken,
  });

Then the token can be provided as follow:

move-sqs --sourceQueueUrl \"https://sqs.eu-west-1.amazonaws.com/123456789012/from-queue" --destinationQueueUrl "https://sqs.eu-west-1.amazonaws.com/123456789012/to-queue" --region "eu-west-1" --accessKeyId "YourAwsAccessKeyId" --secretAccessKey "YourAwsSecretKey" --sessionToken "YourSessionToken"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions