Amazon AWS - Simple Queue Service (SQS)¶
Nothing can be simpler to interact with AWS Simple Queue Service (SQS) than the BotCity plugin for AWS Lambda.
Create queues, send and receive messages and much more.
Installation¶
Importing the Plugin¶
After you installed this package, the next step is to import the package into your code and start using the functions.
Setting up connection¶
Note
There are two different ways to authenticate.
1. Creating the .aws
folder in the home directory, you need to create two files.
# ~/.aws/credentials
[default]
aws_access_key_id=<your_aws_access_key_id>
aws_secret_access_key=<your_aws_secret_access_key>
2. Passing credentials in the class constructor.
# Using the `.aws` folder
sqs = BotAWSSQSPlugin()
# Alternative using the credentials as constructor arguments
sqs = BotAWSSQSPlugin(
use_credentials_file=False,
access_key_id='<your_aws_access_key_id>',
secret_access_key='<your_aws_secret_access_key>',
region_name='<region_code>' # default-region='us-east-1'
)