Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.
This repository was 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

Description

@jgz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions