918 B
918 B
aws-configure
Authenticate with AWS via OIDC and export credentials to the environment.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
role-arn |
Yes | Full IAM role ARN | |
region |
No | eu-central-1 |
AWS region |
aws-access-key-id |
No | AWS access key to use. Only required for some authentication types. | |
aws-secret-access-key |
No | AWS secret key to use. Only required for some authentication types. |
Usage
- uses: https://schmalz-git.git.onstackit.cloud/schmalz/shared-actions/aws-configure@aws-configure-v1
with:
role-arn: arn:aws:iam::123456789012:role/my-role
Notes
- Requires
enable-openid-connect: trueon the Forgejo runner job. - Credentials are exported via
$FORGEJO_ENVso subsequent steps can use them. - When
aws-profileis notdefault, a named AWS CLI profile is also configured.