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

VPC should filter out Local Zones & Wavelength Zones when fetching the list of AZs #1365

Open
flostadler opened this issue Aug 21, 2024 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@flostadler
Copy link
Contributor

flostadler commented Aug 21, 2024

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

When the users do not provide the AZs to use for the VPC, the component retrieves the available AZs from AWS:

const result = await aws.getAvailabilityZones(undefined, { parent: this });

This takes into account all availability zones - including local zones or wavelength zones - the user opted into for their account. Those special zones do not support all features (e.g. NAT gateways) meaning the VPC most certainly fails deploying and is in a broken state.

To prevent this from happening we should only take regular AZs into account. This can be done like so:

aws.getAvailabilityZones({
    filters: [{
        name: "opt-in-status",
        values: ["opt-in-not-required"],
    }],
});

Affected area/feature

  • awsx.ec2.Vpc
@flostadler flostadler added the kind/enhancement Improvements or new features label Aug 21, 2024
@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Aug 21, 2024
@flostadler flostadler changed the title VPC should filter out Local Zones when fetching the list of AZs VPC should filter out Local Zones & Wavelength Zones when fetching the list of AZs Aug 21, 2024
@flostadler flostadler removed the needs-triage Needs attention from the triage team label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants