python - How to check for a SNS in ec2? -
as far understand sns can push messages subscribers. have simple script push message sqs. want basically: have sns topic, have ec2 instance, have sqs. sqs subscribed sns topic.
i want following, when create new msg in sns, want ec2 received notification go check sqs. can last part (go , check sqs) don't understand how receive msg??????
for example,
pub:
context = zmq.context() socket = context.socket(zmq.pub) socket.bind("tcp://*:%s" % '5556') socket.send("hi")
sub
socket.recv()
from example above, pub should sns , sub ec2, right? how listen new sns message?
Comments
Post a Comment