Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sessionToken as an optional parameter #129

Open
iranianpep opened this issue Oct 29, 2019 · 1 comment
Open

Adding sessionToken as an optional parameter #129

iranianpep opened this issue Oct 29, 2019 · 1 comment

Comments

@iranianpep
Copy link

iranianpep commented Oct 29, 2019

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"
@chriscarter90
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants