create_managed_endpoint.py [374:384]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        response1=gdbclient.describe_db_clusters(DBClusterIdentifier = cluname)
                        instancename= (response1['DBClusters'][0]['DBClusterMembers'][0]['DBInstanceIdentifier'])

                        #get vpc name for the instance. We will use this to create\update the private zone
                        response2 = gdbclient.describe_db_instances(DBInstanceIdentifier=instancename)
                        instancevpc = response2['DBInstances'][0]['DBSubnetGroup']['VpcId']

                        # 1> If hosted zone exists 1\check if vpc for current cluster exists, if not, add it 2\next check if writer endpoint exists, if not, add it.
                        if (exists_hz(hostedzonename)):
                            print ("Hosted Zone ", hostedzonename, "already exists. Checking vpcs..")
                            if (exists_hz_vpc(hostedzonename,regioname,instancevpc)):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



create_managed_endpoint.py [430:439]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        response1=gdbclient.describe_db_clusters(DBClusterIdentifier = cluname)
                        instancename= (response1['DBClusters'][0]['DBClusterMembers'][0]['DBInstanceIdentifier'])

                        #get vpc name for the instance. We will use this to create\update the private zone
                        response2 = gdbclient.describe_db_instances(DBInstanceIdentifier=instancename)
                        instancevpc = response2['DBInstances'][0]['DBSubnetGroup']['VpcId']

                        if (exists_hz(hostedzonename)):
                            print ("Hosted Zone ", hostedzonename, "already exists. Checking vpcs..")
                            if (exists_hz_vpc(hostedzonename,regioname,instancevpc)):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



