https://github.com/encalmo/setup-aws-credentials
Scala 3 utility to programatically compute AWS credentials using AWS CLI and AWS SSO.
https://github.com/encalmo/setup-aws-credentials
aws-credentials scala scala-cli-application scala3 script
Last synced: 7 months ago
JSON representation
Scala 3 utility to programatically compute AWS credentials using AWS CLI and AWS SSO.
- Host: GitHub
- URL: https://github.com/encalmo/setup-aws-credentials
- Owner: encalmo
- License: mit
- Created: 2025-03-01T18:06:01.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T23:26:54.000Z (11 months ago)
- Last Synced: 2025-03-26T00:25:36.343Z (11 months ago)
- Topics: aws-credentials, scala, scala-cli-application, scala3, script
- Language: Scala
- Homepage: https://encalmo.github.io/setup-aws-credentials/
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
  
# setup-aws-credentials
Scala 3 utility to programatically compute AWS credentials using AWS CLI and AWS SSO.
## Table of contents
- [Dependencies](#dependencies)
- [Usage](#usage)
- [Example](#example)
- [Test](#test)
- [Project content](#project-content)
## Dependencies
- [Scala](https://www.scala-lang.org) >= 3.3.5
- [Scala **toolkit** 0.7.0](https://github.com/scala/toolkit)
- org.encalmo [**script-utils** 0.9.1](https://central.sonatype.com/artifact/org.encalmo/script-utils_3)
## Usage
Use with SBT
libraryDependencies += "org.encalmo" %% "setup-aws-credentials" % "0.9.2"
or with SCALA-CLI
//> using dep org.encalmo::setup-aws-credentials:0.9.2
## Example
Insert into your bash script to request and export local AWS credentials.
```
$(scala run --dependency=org.encalmo::setup-aws-credentials:0.9.2 --main-class=org.encalmo.aws.SetupAwsCredentials --quiet -- --profile encalmo)
```
## Test
```
scala run . --quiet -- --profile encalmo
```
## Project content
```
├── .github
│ └── workflows
│ ├── pages.yaml
│ └── release.yaml
│
├── .gitignore
├── .scalafmt.conf
├── LICENSE
├── project.scala
├── README.md
└── SetupAwsCredentials.scala
```