Skip to content

AWS SSO CLI Auth Config SSOProviderInvalidToken Error #254

Description

@ryehowell

Describe the bug
Some users are reporting an issue when using AWS SSO auth with the CLI. When using SSO, there have been reported errors of the following:

kubergrunt eks verify --eks-cluster-arn arn:aws:eks:us-east-1:[redacted]:cluster/dev-comm
[] INFO[2025-04-18T14:46:23-04:00] Checking if EKS cluster arn:aws:eks:us-east-1:[redacted]::cluster/dev-comm exists  name=kubergrunt
[] INFO[2025-04-18T14:46:23-04:00] Retrieving details for EKS cluster arn:aws:eks:us-east-1:[redacted]::cluster/dev-comm  name=kubergrunt
[] INFO[2025-04-18T14:46:23-04:00] Detected cluster deployed in region us-east-1  name=kubergrunt
[] ERRO[2025-04-18T14:46:23-04:00] EKS cluster arn:aws:eks:us-east-1:[redacted]::cluster/dev-comm is not active yet  name=kubergrunt
[] ERRO[2025-04-18T14:46:23-04:00] Did not specify wait. Aborting...             name=kubergrunt
ERROR: Error finding AWS credentials. Did you set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables or configure an AWS profile? Underlying error: SSOProviderInvalidToken: the SSO session has expired or is invalid

To Reproduce
Steps to reproduce the behavior including the relevant Terraform/Terragrunt/Packer version number and any code snippets and module inputs you used.

kubergrunt eks verify --eks-cluster-arn <cluster-arn>

Expected behavior
Authentication should happen without error

Nice to have

  • Terminal output
  • Screenshots

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions