converge multimethod
Methods
- converge(rd:ResDef, **props:Hash) Source: autoload/Res.ngs:145
Ensure that resources matching resource definition have given properties. This operation will do necessary changes, including creating the resource(s) if they do not exist. Returns
rdExample
# Idempotent PROXY_LAB_TAGS = { 'env': 'proxy-lab' } PROXY_LAB_VPC_CIDR = '192.168.10.0/24' vpc = AWS::Vpc(VPN_POC_TAGS).converge(CidrBlock=VPN_POC_CIDR, Tags=VPN_POC_TAGS) gw = AWS::Igw(Attachments=[{'VpcId': vpc}]).converge(Tags=VPN_POC_TAGS) rtb = AWS::RouteTable(VpcId=vpc).converge(Routes=Present({"DestinationCidrBlock": "0.0.0.0/0", "GatewayId": gw})) subnet = AWS::Subnet(VpcId=vpc, CidrBlock=VPN_POC_CIDR).converge()