C4w4 : AWS Credential Errors During setup.sh Execution

Hi, While running the scripts/setup.sh script, I encountered multiple AWS CLI authentication errors. Below are the key issues:

  • Invalid Client TokenId : The security token included in the request is invalid.
  • Auth Failure : Authorization header or parameters are not formatted correctly.
  • Authorization Header Malformed : A non-empty Access Key (AKID) must be provided in the credential.

Despite these errors, the script output: Setup completed successfully. All environment variables and Terraform backend configurations have been set.It looks like the AWS credentials might be missing, misconfigured, or expired.
This is blocking further progress, so I’d appreciate it if someone could get back to me as soon as possible to help resolve the credential issue.
I’ve attached the logs below for reference.


Hello @khusha,

Other learners have encountered this issue with source scripts/setup.sh as well, it seems the lab exceeded limit after probably too many tries. You can disregard the message Setup completed successfully since it’s a message that prints at the end of the setup.sh file regardless of it succeeds or fails. I can see from the screenshot that you have an errors.txt file from before so I guess you had issues when you ran terraform apply.

Please complete this form and a staff @Mubsi will refresh your lab to fix those issues. Note, it takes 2 business days to complete since it’s a manual process performed by the engineers. Thank you