Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nordcloud/aws-assume-role
GitHub action to assume subsequent AWS roles
https://github.com/nordcloud/aws-assume-role
actions aws github github-action
Last synced: 3 days ago
JSON representation
GitHub action to assume subsequent AWS roles
- Host: GitHub
- URL: https://github.com/nordcloud/aws-assume-role
- Owner: nordcloud
- License: mit
- Created: 2019-12-01T19:17:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T09:41:15.000Z (about 2 years ago)
- Last Synced: 2024-05-22T23:46:24.860Z (6 months ago)
- Topics: actions, aws, github, github-action
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 22
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AWS Assume role action
It lets you assume a role and sets the credentials accordingly.
## Usage
The action under the hood uses the https://github.com/nordcloud/assume-role-arn tool and follows the same version schema. Below is a simple example where you pass `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` via Github secrets, and assume role in passed in `DEPLOYMENT_ROLE` with additional external id `DEPLOYMENT_EXID`. The action will set the needed credentials for later steps. For more switches you can check `assume-role-arn` tool.
Example:
```yaml
name: CIon: [push]
jobs:
build:runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: nordcloud/aws-assume-role@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
args: -r ${{ secrets.DEPLOYMENT_ROLE }} -e ${{ secrets.DEPLOYMENT_EXID }}
```## Authors
Dariusz Dwornikowski, Nordcloud 🇵🇱