def do_startup():
	# Check if the master resource record exists
	if zone.get_cname(master_hostname) is None:
		print 'Creating master record: %s' % master_hostname
		status = zone.add_cname(master_hostname, instance_ip, ttl)
		return
	print "Master record exists. Assuming slave role"
	# Check if the slave resource record exists - if more than one result is found by get_cname,
	# an exception is raised. This means that more than one record exists so we can ignore it.
	try:
		slave_rr_exists = (zone.get_cname(slave_hostname) != None)
	except boto.exception.TooManyRecordsException:
		slave_rr_exists = True

	if slave_rr_exists:
		print 'Slave record exists. Adding instance to pool: %s' % slave_hostname
	else:
		print 'Creating slave record: %s' % slave_hostname
	# Create or update the slave Weighted Resource Record Set
	status = zone.add_cname(slave_hostname, instance_ip, ttl, slave_identifier)
Returns a list of RPCMethod objects supported by the server
dataset/ETHPy150Open mikery/aws-system-administration-resources/ch10/update_route53.py/do_startup--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/common/rpc4django/rpcdispatcher.py/RPCDispatcher.list_methods