This task generates the following Bamboo variables:
${bamboo.custom.aws.codeartifact.authorizationToken.password}
${bamboo.custom.aws.codeartifact.expirationDate}
An alternative representation as a JSON object for automated processing with tools like jq is available too:
${bamboo.custom.aws.codeartifact.credentials.json.password}
Aforementioned variables will also be available as environment variables in Bamboo Script tasks. The syntax differs between shells, as illustrated in these examples for assigning them to the standardized variables used by tools like the AWS Command Line Interface (AWS CLI):
export AUTHORIZATION_TOKEN=$bamboo_custom_aws_codeartifact_authorizationToken_password
export EXPIRATION_DATE=$bamboo_custom_aws_codeartifact_expirationDate
$AUTHORIZATION_TOKEN = $Env:bamboo_custom_aws_codeartifact_authorizationToken_password
$EXPIRATION_DATE = $Env:bamboo_custom_aws_codeartifact_expirationDate
set AUTHORIZATION_TOKEN=%bamboo_custom_aws_codeartifact_authorizationToken_password%
set EXPIRATION_DATE=%bamboo_custom_aws_codeartifact_expirationDate%