ancient-thailand-47587
06/28/2024, 5:40 PMrt.routes.append(<new route args>)
but I’m getting the followiing error
route_table.routes.append(route_args)
TypeError: 'Output' object is not callable
miniature-musician-31262
06/28/2024, 6:40 PMroutes
property is an "output" property of RouteTable, which means it's read-only. To add routes to a route table, you can either declare them on the RouteTable
declaration itself, like this: https://github.com/pulumi/examples/blob/45eeabec900da9f8d2446d36879887828560f086/aws-py-eks/vpc.py#L24C1-L34C2
or as individual Route
resources associated to the RouteTable
, such as https://github.com/pulumi/examples/blob/45eeabec900da9f8d2446d36879887828560f086/aws-py-hub-and-spoke-network/inspection.py#L303-L314miniature-musician-31262
06/28/2024, 6:42 PMancient-thailand-47587
06/28/2024, 6:43 PMancient-thailand-47587
06/28/2024, 6:45 PMancient-thailand-47587
06/28/2024, 6:47 PMminiature-musician-31262
06/28/2024, 6:48 PMancient-thailand-47587
06/28/2024, 6:48 PMminiature-musician-31262
06/28/2024, 6:54 PMRoute
resources declared that reference a `VpcPeeringConnection`: https://github.com/pulumi/examples/blob/45eeabec900da9f8d2446d36879887828560f086/aws-ts-stackreference-architecture/networking/src/vpc.ts#L311-L335ancient-thailand-47587
06/28/2024, 6:55 PMminiature-musician-31262
06/28/2024, 6:55 PMancient-thailand-47587
07/01/2024, 4:31 PM