Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

EKS Cognito User Pool has to be in same region as aws cli config #1464

Open
jgz opened this issue Sep 23, 2021 · 0 comments
Open

EKS Cognito User Pool has to be in same region as aws cli config #1464

jgz opened this issue Sep 23, 2021 · 0 comments

Comments

@jgz
Copy link

jgz commented Sep 23, 2021

If you create the cognito user pool in a region other then the one you have set as the default in your aws cli config it throws an error that isn't very helpful.

[jon@JGZ-T1:~/projects/rkbp]$ kubeprod install eks   --email ${AWS_EKS_USER}   --dns-zone "${BKPR_DNS_ZONE}"   --user-pool-id "${AWS_COGNITO_USER_POOL_ID}"
INFO  Installing platform eks
....
INFO  Setting up configuration for OAuth2 Proxy
ERROR Error: Error retrieving client applications for user pool ID us-east-2_vLD8dbSby: ResourceNotFoundException: User pool us-east-2_vLD8dbSby does not exist.

My aws cli region was set to us-east-1 but i had created the pool in us-east-2.

Seems like it should be possible to make it dynamically choose which region to look for the user pool in since its part of the ID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant