To add routes and/or NACL rules, you need to do so in an
apply
. Here's an example in Python, but you should be able to translate without too much trouble:
https://github.com/pulumi/examples/blob/master/aws-py-hub-and-spoke-network/spoke.py#L147C46-L231
You cannot modify the resources after they are created, so if there are not inputs for whatever you need to change, you'll need to create the resources yourself using the Classic package, but please file an issue in pulumi/pulumi-awsx for the inputs you want!
🙌 1
stocky-restaurant-98004
09/18/2023, 5:54 PM
If it's an independent resource and you want to add a child resource using the parent's ID (like the example of adding routes to a route table that comes with awsx.ec2.Vpc), all the IDs you need should be available as outputs. If you need different properties on the resource itself, that would require dropping down to AWS Classic.
🙌 1
k
kind-motorcycle-43615
09/19/2023, 5:36 AM
Thank you for the help. @stocky-restaurant-98004 🫡
Will look in to that
PS: Looked into thiat and it seems I have to go with Classic package as you mentioned in above
s
stocky-restaurant-98004
09/19/2023, 3:27 PM
You're welcome! Again, please submit an issue to AWSX with your use case if you have the time!
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.