ww-tech / aws-sts-proxy

An OIDC Authenticated Proxy around AWS STS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exit with code 1

1robroos opened this issue · comments

Hello, I made it so far :

docker-compose up
Starting aws-sts-proxy_web_1 ... done
Attaching to aws-sts-proxy_web_1
web_1  | Must export EKS_ASSUME_ROLE
web_1  | Must export EXTERNAL_ID
aws-sts-proxy_web_1 exited with code 1

No idea why it fails.
I did set these vars in my ubuntu env:

export EKS_ASSUME_ROLE="arn:aws:iam::[redacted]:role/EKS-GOOGLE-AUTH"
export STRING_REQUIREMENT=1r
export EXTERNAL_ID=""

Do you know the reason?

possibly because EXTERNAL_ID is an empty string.

docker-compose up
WARNING: The EKS_ASSUME_ROLE variable is not set. Defaulting to a blank string.
WARNING: The EXTERNAL_ID variable is not set. Defaulting to a blank string.
Recreating aws-sts-proxy_web_1 ... done
Attaching to aws-sts-proxy_web_1
web_1  | Must export EKS_ASSUME_ROLE
web_1  | Must export EXTERNAL_ID
aws-sts-proxy_web_1 exited with code 1
export EKS_ASSUME_ROLE=foo
export EXTERNAL_ID=foo
docker-compose up
Recreating aws-sts-proxy_web_1 ... done
Attaching to aws-sts-proxy_web_1
web_1  | 2020/02/21 15:37:57 listening on http://0.0.0.0:8080/

It's working fine for me.