fix(ec2): internet gateway is created even if public subnets are reserved
This PR fixes that Internet Gateway will be created even if (all) public subnets are reserved.
The reserved option is for not actually creating subnet resources. So IGW should not be created if all public subnets are reserved, because there is no public subnets in the VPC.
It would be appropriate to consider the reserved option since we originally did not want to create an IGW if there was no public subnets.
Also, if this bug is not fixed, it will go to the code where the NatGateway is created without public subnets. (This will be stopped with another error, but...)
Closes #28593.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
@lpizzinidev
Thanks, I fixed!
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).
AWS CodeBuild CI Report
- CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
- Commit ID: 12c82b6672ffb52610a3eae81b2df91236550701
- Result: SUCCEEDED
- Build Logs (available for 30 days)
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).