glamorous-engine-430
07/05/2025, 6:09 PMpublic_route_table = aws.ec2.RouteTable("PublicRouteTable",
routes=[{
"cidr_block": "0.0.0.0/0",
"gateway_id": internet_gateway.id,
}],
tags={
"Name": "eksctl-test-cluster/PublicRouteTable"
},
vpc_id=vpc.id)
2)
public_route_table = aws.ec2.RouteTable("PublicRouteTable",
tags={
"Name": "eksctl-test-cluster/PublicRouteTable"
},
vpc_id=vpc.id)
public_subnet_route = aws.ec2.Route("PublicSubnetRoute",
destination_cidr_block="0.0.0.0/0",
gateway_id=internet_gateway.id,
route_table_id=public_route_table.id)
pulumi import
generates code like in the first case, but the second should be better for further management I guess...little-cartoon-10569
07/06/2025, 8:42 PMNo 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.
Powered by