aws / aws/aws-elastic-beanstalk-cli-setup

AWS CLI with SSO not working

Open
#139 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
537
Forks
226
PR merge metrics
No merged PRs in 30d

Description

**1.**
- OS: [e.g. OS X, Ubuntu, Windows, etc.]: Ubuntu 22.04.1 LTS on WSL 2 on WIndows 11 22H2
- Shell (Bash, PowerShell, Zsh, etc.): bash

**2. Description**
I installed EB CLI following [these instructions](https://github.com/aws/aws-elastic-beanstalk-cli-setup).

To use it, I configured AWS CLI for [SSO](https://en.wikipedia.org/wiki/Single_sign-on) following [these instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html#sso-configure-profile-token-auto-sso).

The configuration works on the AWS CLI side, but not on EB.

`eb init --profile ` does not work, it shows me this error:

`ERROR: InvalidConfigError - The profile "" is configured to use SSO but is missing required configuration: sso_start_url, sso_region`

I checked the `~/.aws/config` file and it contains all the needed parameters.

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem with `eb init --profile ` using the Ubuntu 22.04.1 WSL environment and an AWS CLI SSO profile. Compare the profile settings in `~/.aws/config` with what EB CLI reads; done means the configured SSO profile works without the missing `sso_start_url, sso_region` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, bash, python
Domain
authentication, cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.