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-baseline] Apply default subnet changes to existing subnets #237

Merged
merged 1 commit into from
Dec 11, 2021
Merged

[vpc-baseline] Apply default subnet changes to existing subnets #237

merged 1 commit into from
Dec 11, 2021

Conversation

jgeurts
Copy link
Contributor

@jgeurts jgeurts commented Dec 8, 2021

The aws_default_subnet resources will only be created for existing VPC default subnets. This will fix Default subnet not found errors when one or multiple default subnets do not exist in the VPC. Fixes #198

Notes:

  • This requires bumping the aws provider minimum version to 3.55.0 to add support for aws_subnets data source.
  • Since this change uses for_each instead of count, the aws_default_subnet resources will be recreated using subnet ids instead of indexes.

@jgeurts jgeurts changed the title Apply default subnet changes to existing subnets [vpc-baseline] Apply default subnet changes to existing subnets Dec 8, 2021
The `aws_default_subnet` resources will only be created for existing VPC default subnets. This will fix "Default subnet not found" errors when one or multiple default subnets do not exist in the VPC. Fixes #198
@nozaq
Copy link
Owner

nozaq commented Dec 11, 2021

@jgeurts LGTM, thank you for your contribution 👍🏼

@nozaq nozaq added the enhancement New feature or request label Dec 11, 2021
@nozaq nozaq merged commit 1b0f314 into nozaq:main Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default subnet not found for ca-central-1d
2 participants