Skip to content

Commit

Permalink
Emit warning of aws/assume-role deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywok committed Jan 21, 2025
1 parent 625ee5b commit d4fe4dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aws/assume-role/mint-leaf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: aws/assume-role
version: 1.1.3
version: 1.1.4
description: Assume an AWS role
source_code_url: https://github.com/rwx-research/mint-leaves/tree/main/aws/assume-role
issue_tracker_url: https://github.com/rwx-research/mint-leaves/issues
Expand Down Expand Up @@ -32,6 +32,11 @@ tasks:
run: |
set -ueo pipefail
cat << EOF > $(mktemp "$MINT_WARNINGS/warning-XXXX")
This leaf is deprecated. Please upgrade to \`2.0.0\` or later.
Going forward the OIDC token is provided by downstream tasks via AWS_OIDC_TOKEN environment variable.
EOF
if ! command -v aws &> /dev/null; then
cat << EOF > $(mktemp "$MINT_ERRORS/error-XXXX")
The AWS CLI must be installed. To install it, you can use the \`aws/install-cli\` leaf.
Expand Down

0 comments on commit d4fe4dd

Please sign in to comment.