Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect zones extracted from provided region #35

Open
ionic-polar opened this issue Feb 24, 2025 · 0 comments
Open

Incorrect zones extracted from provided region #35

ionic-polar opened this issue Feb 24, 2025 · 0 comments

Comments

@ionic-polar
Copy link

Based on Load Balancing and Auto scaling - Challenge Lab :

the command to filter zones based on provided region is not only affecting europe region.

The brackets wrapping the $REGION is not allowing the filter to do exact match, which results in the zones retrieved to contain zones not found in the provided region, causing the creation of instance to fail.

Suggest to change
gcloud compute zones list --filter="region:($REGION)" --format="value(name)"
gcloud compute zones list --filter="region:($REGION_2)" --format="value(name)"
to
gcloud compute zones list --filter="region:$REGION" --format="value(name)"
gcloud compute zones list --filter="region:$REGION_2" --format="value(name)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant