Skip to content

Incorrect zones extracted from provided region #35

@ionic-polar

Description

@ionic-polar

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)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions