#!/usr/bin/python import boto3 import json # Create SQS client sqs = boto3.client('sqs',region_name='ap-southeast-1') queue_url = 'https://sqs.ap-southeast-1.amazonaws.com/862498237182/test-paywalletusercreate-sqs' username = 'suername' profile_name = 'yf' parent_id = '2j' merchant_id = '56' account_id = 't3' email = 'x11' phone = 'f112' # Send message to SQS queue body = {"username": username, "profileName": profile_name, "parentId": parent_id, "merchantId": merchant_id, "userId": account_id, "email": email, "phoneNumber": phone } response = sqs.send_message( QueueUrl=queue_url, DelaySeconds=10, MessageBody=json.dumps(body) ) print(response['MessageId'])