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
creamy-knife-93354
05/11/2021, 3:34 PM
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
billowy-army-68599
05/11/2021, 3:34 PM
any chance you can share some code?
c
creamy-knife-93354
05/11/2021, 3:41 PM
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
billowy-army-68599
05/11/2021, 3:43 PM
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
creamy-knife-93354
05/11/2021, 3:48 PM
Thanks again, I will steer away from it going forward 😄
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.