-
Notifications
You must be signed in to change notification settings - Fork 104
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
AWSX wants to replace all VPC subnet cidr blocks #1204
Comments
@mjeffryes I was able to develop a work around. After exporting the awsx.ec2.subnet_layout I was seeing /20 for public and private along with /24 for isolated subnet specs. Looking at the diff of the preview it appears that the previous version of awsx created /19 for our public and private with the isolated staying at /24 By manually defining the cidr_mask for our public subnet to /20 and keeping our private subnet to /19 the preview shows no changes. I discovered this in our test environments that if I statically assign specific network addresses to the cidr_blocks input it wont actually trigger Pulumi to change the subnet address space, even though the subnet address space is different from the current state. I don't think this is the intended behavior. |
@spennell can I confirm the settings you're using for
For 3 AZs and CIDR of I've also tried On the workaround: adding the explicit ranges is a good first step for predictability. I would also recommend moving to the "Auto" layout as it's a lot more predictable in its behaviour as it won't modify the order of the specs. |
For the problematic environment yes we are specifying 3 AZ's. The test environments default to 2 which is why they may not be experiencing the issue.
Here is the updated block that uses the workround.
|
Fixes #1204 - Assuming all subnets are the same size is overly cautious and breaks some existing setups. - Maintain the new special case for single subnet layouts to use the whole of small VPCs. - This will now fail and require manual layout for smaller VPCs with either: - More than 1 private subnets - More than 2 public subnets - More than 1 public subnets and more than 4 isolated subnets
What happened?
When running a preview for one of our stacks Pulumi is indicating it wants to replace all of our VPC subnets(12) due to changes with the cidr blocks. There are existing resources in these subnets.
When looking at the diff of the preview it is suggesting new cidr blocks for all the subnets.
Example
Code that generates the VPC
Output of
pulumi about
Additional context
We recently updated from awsx v1.0.2 to v2.3.0. We didn't see this issues with our test and dev environments.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: