Created
August 24, 2013 07:05
-
-
Save toastdriven/6326581 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from boto3.core.session import Session | |
| from boto3.sqs.resources import SQSQueue | |
| session = Session() | |
| SQSConnection = session.get_service('sqs') | |
| conn = SQSConnection(region_name='us-west-2') | |
| queue = SQSQueue(session=session, connection=conn) | |
| queue.name = 'my_test_queue' | |
| res = queue.create() | |
| print(queue.url) | |
| queue.send_message( | |
| message_body="THIS IS A TRIUMPH I'M MAKING A NOTE HERE HUGE SUCCESS" | |
| ) | |
| print("Go check the AWS console.") | |
| time.sleep(60 * 2) | |
| queue.delete() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment