aws / aws/aws-toolkit-azure-devops

AWS subcommand requireInput required: awsSubCommand

Open
#463 2 comments 0 reactions 0 assignees View on GitHub
bug confusing-error documentation
Dominant language
TypeScript
Stars
258
Forks
114
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

We want to use awscodeartifact to retrieve a token that can later be used to access private aws repositorys. Therefore we run a aws command that should save the output to AWS_CODEARTIFACT_AUTH_TOKEN for later use in the build process.

However following error appears.
##[error]Error: Input required: awsSubCommand

**To reproduce**
Add AWS connection to codeartifact from amazon (you need to set up codeartifact at aws)

- task: AWSCLI@1
inputs:
awsCredentials: 'AWS Connection'
regionName: 'eu-central-1'
awsCommand: 'aws codeartifact get-authorization-token --domain mydomain --domain-owner 1234... --query authorizationToken --output text'
awsArguments: '$(AWS_CODEARTIFACT_AUTH_TOKEN)'

Run code

**Expected behavior**

Save retrieved token to paramater AWS_CODEARTIFACT_AUTH_TOKEN for later use

**Your Environment**

Using latest azure Pipelines

**Additional context**

This problem is crucial to anyone use codeartifact to build with azure pipelines. The token has to be received before building and save to a variable.

Contributor guide

Open the contributing guide

Research direction

Start at the AWSCLI@1 task input handling and reproduce the shown configuration with the awsCommand, awsSubCommand, and awsArguments inputs. Determine how command output is expected to become AWS_CODEARTIFACT_AUTH_TOKEN, then verify the agreed behavior with a regression test or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, azure, typescript
Domain
cli, cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.