# Are there plans to make the datomic-cli work with AWS SSO?

**URL:** <https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808>\
**Category:** Datomic Cloud\
**Created:** [March 23, 2021, 2:36pm UTC](https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808 "2021-03-23T14:36:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanM](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/danm/32/486_2.png) [@DanM](https://forum.datomic.com/u/DanM)\
**Post date:** [March 23, 2021, 2:36pm UTC](https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808/1 "2021-03-23T14:36:27Z")

</div>

We’re using AWS SSO to log in on the CLI, which means:

- we run `aws sso login [--profile read]`
- the command spawns a browser to log in via SSO
- files are created under `~/.aws/sso/cache/` containing SSO credentials
- there is no `~/.aws/credentials` file
- there are no `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` env vars
- subsequent `aws ...` commands make use of the SSO credentials to authenticate

We’ve written an SSO credentials provider that gets handed off to `datomic.client.api/client` to allow authentication when testing things as a developer (not used by the actual deployed apps), but it looks like the `datomic` etc CLI tools don’t know how to interact with the SSO credential system? At current attempting to run a CLI command results in:

```auto
$ datomic cloud list-systems -p sudo
WARNING: When invoking clojure.main, use -M
Execution error (ExceptionInfo) at datomic.tools.ops.aws/invoke! (aws.clj:83).
AWS Error: Unable to fetch credentials. See log for more details.

```

The log in question just contains a larger stacktrace.

---

<div class="post-metadata">

**Author:** ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)\
**Post date:** [March 24, 2021, 3:55pm UTC](https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808/2 "2021-03-24T15:55:27Z")

</div>

Hi @DanM I’ve logged a story for us to investigate supporting SSO. We’ll update here with our findings.

Cheers,  
Jaret

---

<div class="post-metadata">

**Author:** ![cch1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/cch1/32/470_2.png) [@cch1](https://forum.datomic.com/u/cch1)\
**Post date:** [June 30, 2022, 11:04pm UTC](https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808/3 "2022-06-30T23:04:01Z")

</div>

Can we get an update on the schedule for SSO support?

---

<div class="post-metadata">

**Author:** ![cch1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/cch1/32/470_2.png) [@cch1](https://forum.datomic.com/u/cch1)\
**Post date:** [October 6, 2022, 7:14pm UTC](https://forum.datomic.com/t/are-there-plans-to-make-the-datomic-cli-work-with-aws-sso/1808/4 "2022-10-06T19:14:37Z")

</div>

@jaret , can we get an update on the schedule for SSO support?
