ROSA commands are failing with an error failed to create AWS client.

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Service on AWS (ROSA)

Issue

  • ROSA commands are not working due to an error Failed to create AWS client: Failed to find credentials.
  • ROSA commands are failing.

Resolution

  • Configure the credentials per the link.
# aws configure

Root Cause

  • If the AWS credentials are not correctly configured in the AWS CLI then Amazon S3 can't find the credentials to authenticate AWS API calls.

Diagnostic Steps

  • Check the latest ROSA CLI is installed.
# rosa version
  • Check the latest AWS CLI is installed.
  • Check if the AWS CLI is configured with the credentials.
# aws configure list
Name                     Value                   Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key                <not set>             None    None
secret_key                <not set>             None    None
    region                <not set>             None    None

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments