Comments (4)
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.
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.
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.
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)
- Secrets Manager get secret task output not a valid json HOT 2
- AWS Service Connector
- Error when execute CLI actions using eu-south-2 region
- Pass a role ARN in runtime and use with service connection
- AWSShellScript: Keep original color when logging
- Running Terraform output command returns no result HOT 1
- S3 Upload use an endpoint
- S3 Upload Glob pattern STILL not finding files
- Azure DevOps Task 'AWS Tools for Windows PowerShell Script' - Ignore PS Module Check HOT 10
- Support for OIDC to authenticate without long lived credentials HOT 10
- Buidling code on master results in error when executing any task HOT 3
- Use s3ObjectKey or randomize S3 object name when uploading Cloudformation template
- Unable to push docker image on to amazon ECR
- AWS SSM Run Command issue with SNS Notifications
- Incompatible with IMDSv2 HOT 8
- LambdaNETCoreDeploy failing to upload to S3 with signature mismatch in version 5.8.1
- Task AWSCLI@1 fails on S3 cp command
- Ææ
- AccessDeniedException: Cross-account pass role is not allowed - but it's root account HOT 1
- ECRPushImage - Failed to obtain authorization token to log in to ECR, error: UnrecognizedClientException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-toolkit-azure-devops.