GithubHelp home page GithubHelp logo

Comments (4)

stevejroberts avatar stevejroberts commented on June 13, 2024

We'll take a look to see if we can repro. What fields did you fill out in the credential dialog? (Don't list the values here, just the names of the fields you populated).

from aws-toolkit-azure-devops.

akkipuneet avatar akkipuneet commented on June 13, 2024

aws_connection_issue

Thanks for the reply Steve . Please find above snapshot to see my aws connection configuration in my task . I tried configuring the aws connection with AWS CLI task but getting below error

2017-12-08T13:41:49.8300771Z ##[section]Starting: AWS CLI: s3
2017-12-08T13:41:49.8300771Z ==============================================================================
2017-12-08T13:41:49.8300771Z Task : AWS CLI
2017-12-08T13:41:49.8300771Z Description : Run an AWS CLI command
2017-12-08T13:41:49.8300771Z Version : 1.0.14
2017-12-08T13:41:49.8300771Z Author : Amazon Web Services
2017-12-08T13:41:49.8300771Z Help : The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts. You must have the AWS CLI installed to use this task. See http://docs.aws.amazon.com/cli/latest/userguide/installing.html for more details.
2017-12-08T13:41:49.8300771Z ==============================================================================
2017-12-08T13:41:50.1113236Z 4b091740-92a4-44e7-99e7-ce1a7ab67bd5 exists true
2017-12-08T13:41:50.1113236Z Configuring task to use role-based credentials.
2017-12-08T13:41:50.5644336Z ##[error]The security token included in the request is invalid.
2017-12-08T13:41:50.5644336Z ##[section]Finishing: AWS CLI: s3


Dont know where to give aws_session_token value .
FYI , My access keys are valid for one hour .

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 13, 2024

Just so I'm clear, you're trying to use existing temporary session credentials to then assume a role? If that's the case, the tools don't support that currently.

The access and secret key should not be temporary (since we don't know when tasks using the credentials will run, having time-limited credentials specified would be problematic). Instead, you should specify the access and secret key for an IAM user (or you could use your root credentials, but we really don't advise that). Add in the arn of the role you want the task(s) to run under when those credentials are used and the tools will automatically generate time-limited credentials, scoped to the role, when needed. You don't need to handle the session token etc.

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 13, 2024

Resolving issue as I don't think there are any changes to be done here, as explained above. If there is a usage scenario where keys plus an externally-generated session token is needed and for which the tool's current use of assume role wouldn't suit, feel free to reopen and we can discuss further.

from aws-toolkit-azure-devops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.