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.
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.