An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white) ![Maven Central Version](https://img.shields.io/maven-central/v/org.encalmo/setup-aws-credentials_3?style=for-the-badge) Scaladoc

# 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
```