11/10/2021, 1:47 PM
hey 👋 I am using Pulumi to set up a VPC in aws like so:
const vpc = new awsx.ec2.Vpc("eks-vpc", {
        cidrBlock: "",
        numberOfAvailabilityZones: "all",
I believe this makes a public and private subnet per AZ, so in my case that's 3 of each. I'd like to change my cidr block to be
- when i do this and run the changes, it seems that it fails because the internet gateway can't be detached from the VPC - which I have narrowed down to the fact that each NAT gateway has a public IP associated to them that should probably be removed first:
  pulumi:pulumi:Stack (bravissimo-platform-ec2-vpc):
    error: update failed
  aws:ec2:InternetGateway (eks-vpc):
    error: 1 error occurred:
        * updating urn:pulumi:vpc::bravissimo-platform-ec2::awsx:x:ec2:Vpc$awsx:x:ec2:InternetGateway$aws:ec2/internetGateway:InternetGateway::eks-vpc: 1 error occurred:
        * Error waiting for internet gateway (igw-03ec74c6df2e8bd83) to detach: timeout while waiting for state to become 'detached' (last state: 'detaching', timeout: 15m0s)
Am I missing something here?


11/11/2021, 4:00 AM
I'm not sure I've seen this particular case before. Would you mind opening an issue in on this? It may be the case based on your suggestion that there is an implicit dependency that is not being captured correctly.