magnificent-church-42829
04/22/2022, 5:55 PMpolite-napkin-90098
04/22/2022, 7:46 PMmagnificent-church-42829
04/22/2022, 8:08 PMigw_name = f'{name}-igw'
self.igw = ec2.InternetGateway(igw_name,
vpc_id=self.vpc.id,
tags={
'Name': igw_name
},
opts=ResourceOptions(parent=self,
depends_on=self.subnets[:2])
)
polite-napkin-90098
04/22/2022, 8:09 PMmagnificent-church-42829
04/22/2022, 8:14 PMTheoption ensures that resource creation, update, and deletion operations are done in the correct order.dependsOn