cloudbees-io/Configure AWS Credentials For CloudBees Automations

Configure AWS credential and region environment variables for use with the AWS CLI and AWS SDKs

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 8, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: cloudbees-io/configure-aws-credentials@77c87be1380c78f01d07eb875374650d6753cc05 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
audienceThe audience to use for the OIDC providernosts.amazonaws.com
cloudbees-api-tokenThe CloudBees API Token to use for fetching OIDC ID tokens, must have `id-token: write` permission ${{ cloudbees.api.token }}
cloudbees-api-urlThe CloudBees API root URL to use for fetching OIDC ID tokens${{ cloudbees.api.url }}
aws-access-key-idAWS Access Key ID. This input is required if running in the GitHub hosted environment. It is optional if running in a self-hosted environment that already has AWS credentials, for example on an EC2 instance.no
aws-secret-access-keyAWS Secret Access Key. This input is required if running in the GitHub hosted environment. It is optional if running in a self-hosted environment that already has AWS credentials, for example on an EC2 instance.no
aws-session-tokenAWS Session Tokenno
aws-regionAWS Region, e.g. us-east-2yes
mask-aws-account-idWhether to set the AWS account ID for these credentials as a secret value, so that it is masked in logs. Valid values are 'true' and 'false'. Defaults to truenotrue
role-to-assumeUse the provided credentials to assume an IAM role and configure the Actions environment with the assumed role credentials rather than with the provided credentialsno
web-identity-token-fileUse the web identity token file from the provided file system path in order to assume an IAM role using a web identity. E.g., from within an Amazon EKS worker nodeno
role-duration-secondsRole duration in seconds (default: 6 hours, 1 hour for OIDC/specified aws-session-token)no
role-session-nameRole session name (default: CloudBeesAutomations)no
role-external-idThe external ID of the role to assumeno
role-skip-session-taggingSkip session tagging during role assumptionnofalse
http-proxyProxy to use for the AWS SDK agentno
role-chainingUse existing credentials from the environment to assume a new rolenofalse
inline-session-policyInline session policyno
managed-session-policiesList of managed session policiesno
namedescription
aws-account-idThe AWS account ID for the provided credentials