in lumberyard-sample/ci/eks-artifacts/start.py [0:0]
def publish_game_server_status(status,server_type):
print 'in publish_game_server_status with hostname='+public_hostname+' port='+str(public_port)+' region='+region+' status='+status+' type='+server_type
data=[]
data.append({'public_hostname':public_hostname,'instance_type':instance_type,'datetime':now,'public_port':public_port,'region':region,'status':status,'type':server_type})
print str(data)
try:
# Send the message to the queue
response = queue.send_message(
MessageBody=str(data)
)
# The response is NOT a resource, but gives you a message ID and MD5
print('response message id is '+response.get('MessageId'))
except Exception as e:
print 'error publishing server status via SQS'
print str(e)