Open aavileli opened 5 years ago
Cyrus, this is the one we just chatted about ...
This is doable, but definitely non-trivial. Many of the resources we make are not necessarily tagged with any sort of information to know how they were created. We would have to reinfer this stuff. At a minimum it would involve:
The idea here was that the information would be fairly easy to export if needed. For example, you really only need to export 6 values from your Vpc, and then use those to rehydrate the Vpc later on. We could make it easier to get the ExistingVpcIdArgs
from an actual Vpc. That way you could just export that for your stack and then read that in later.
Can we get another method called fromExistingVpcId on awsx.ec2.vpc class so we don't need to specify all the subresource ids like a data block. This is so silly if the vpc was created using the awsx package you have already set the public, private and isolated subnets with included tags