crossplane-contrib / provider-jet-aws

AWS Provider for Crossplane that is built with Terrajet.
https://crossplane.io
Apache License 2.0
37 stars 30 forks source link

Add ability to reference natGatewayIds in Routes and Routetables #237

Open AbrohamLincoln opened 1 year ago

AbrohamLincoln commented 1 year ago

What problem are you facing?

Adding routes to Nat Gateways is difficult in a composite resource definition. The only approach I can come up with currently is to publish the natGateway Id to the status, then patch the ID into a route.

Adding routes to Internet Gateways in a composite resource definition is less difficult, but could be simplified. You can create an empty route table, then create a route with the gatewayIdRef and routeTableRef.

How could Crossplane help solve your problem?

Add natGatewayIdRef, natGatewayIdSelector, gatewayIdRef, and gatewayIdSelector to the routetables CRD. This would allow users to create the route table and route in one definition while referencing the nat or internet gateway

Add natGatewayIdRef and natGatewayIdSelector to the routes CRD. This would allow users to create routes with references to nat gateways.