Although, I already got this problem solved; but sharing my experience here so that if someone is stuck, this might be helpful to you.
Based on our use-case, we used to periodically resize our AWS Redshift cluster using AWS provided CLI.
We used to use this following script:
aws redshift modify-cluster --region=eu-west-1 --cluster-identifier test-cluster --node-type dc1.large --number-of-nodes 2
It was throwing following error:
An error occurred (InternalFailure) when calling the ModifyCluster operation (reached max retries: 4): An internal error has occurred. Please try your query again at a later time.
I tried searching using an error message on google, but couldn't make out much information. I have checked the AWS keys are properly deployed on my machine where I am running the scripts from.
What is the problem here and why is it happening?