Skip to content

AWS subcommand requireInput required: awsSubCommand #463

Open
@Silve2611

Description

@Silve2611

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions