Hi, I am trying to work with instantiating objects ad-hoc and it looks like this creates a major problem with referencing other objects - I cannot reference them because they have yet to be created.
I’m using the method suggested by fraser above (see that discussion). I can’t “translate” even this standard snippet to this method:
vpc = ec2.Vpc(
“myvpc”,
cidr_block=“10.0.0.0/16”)
igw = ec2.InternetGateway(
“myinternetgateway”,
vpc_id=vpc.id)
if there was an introspection method to extract the constructor and parameters dynamically, maybe it would have worked