How Do You Troubleshoot the “kops” error “unable to infer CloudProvider from Zones (is there a typo in –zones?)”?

Problem scenario
You run a "kops" command but you receive this error:

"unable to infer CloudProvider from Zones (is there a typo in --zones?)"

How do you get the "kops" command to work?

Solution
There is a value and a format that are necessary for your kops' "--zones" flag.

Determine what region you want to know the zone name for (e.g., us-west-9).  Run this command but substitute us-west-9 with your region of choice:

aws ec2 describe-availability-zones --region us-west-9 | grep ZoneName

The results will be possible choices for you to use as the "zones=" value.  Use one of the "ZoneName" values in your "kops" command.  The problem should go away.

Leave a comment

Your email address will not be published. Required fields are marked *