sous-chefs / aws

Development repository for the aws cookbook
https://supermarket.chef.io/cookbooks/aws
Apache License 2.0
608 stars 554 forks source link

Add support for `fallback_region` in local zones #443

Closed Ahuge closed 3 years ago

Ahuge commented 3 years ago

Description

This change allows you to use the ec2 fallback_region from within an AWS Local Zone.

Issues Resolved

There is an issue currently when chopping off the AZ marker when in a local zone.

In the LAX localzone, your AZ is us-west-2-lax-1a instead of us-west-2a and post chop, it attempts to communicate with <service>.us-west-2-lax-1.amazonaws.com and fails.

Check List

My ruby knowledge is surface level, please let me know if my implementation is not proper ruby style.

kitchen-porter commented 3 years ago

Released as: 9.0.1