Pulumi is declarative: you declare the desired shape of a resource and Pulumi creates or updates it to match that shape. A flow which finds a resources, updates it and saves it is imperative, and is not supported by Pulumi.
little-cartoon-10569
04/05/2022, 8:50 PM
In this case, you need to define the route tables in the normal manner, rather than using the defaults created by the AWSX convenience code.
little-cartoon-10569
04/05/2022, 8:53 PM
You can create routes in a manner that looks to be "after the fact" by using
awsx.ec2.Subnet.createRoute()
. This adds to the declarative definition of the route tables that AWSX creates.
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.