Skip to content

Scala 3 utility to programatically compute AWS credentials using AWS CLI and AWS SSO.

License

Notifications You must be signed in to change notification settings

encalmo/setup-aws-credentials

Repository files navigation

GitHub Maven Central Version Scaladoc

setup-aws-credentials

Scala 3 utility to programatically compute AWS credentials using AWS CLI and AWS SSO.

Table of contents

Dependencies

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