This message was deleted.
# aws
s
This message was deleted.
b
you will unfortunately, yes. Do you know where this route table came from? generally you'll need to set up your own route table in the Pulumi state to avoid this
c
Got it, thanks. Pretty sure this route table in fact is defined in Pulumi, which I've assigned to the VPC using a
MainRouteTableAssociation
. Not sure what's gone wrong here...
b
any chance you can share some code?
c
Yeah, nothing too fancy in this part 🤷
Copy code
var vpcRouteTable = new RouteTable($"{stack}-vpc-route-table-public", new RouteTableArgs
            {
                VpcId = vpc.Id,
                Routes = new []
                {
                    new RouteTableRouteArgs
                    {
                        CidrBlock = "0.0.0.0/0",
                        GatewayId = igw.Id,
                    }
                }
            });

            var vpcRouteTableAssociation = new MainRouteTableAssociation($"{stack}-vpc-route-table-association",
                new MainRouteTableAssociationArgs
                {
                    VpcId = vpc.Id,
                    RouteTableId = vpcRouteTable.Id
                });
b
When I create VPCs, I generally never use the main route table association because it creates some weird dependency/ordering issues which it seems like you're seeing
c
Thanks again, I will steer away from it going forward 😄