boto3_sqs¶
Connection module for Amazon SQS using boto3.¶
Renamed from
boto_sqstoboto3_sqsand rewritten to use the boto3sqsclient APIs directly viasaltext.boto3.utils.boto3mod. The legacy boto2 code path (object-style access, retry loops) has been removed.
- depends:
boto3 >= 1.28.0
botocore >= 1.31.0
- configuration:
This module accepts explicit SQS credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More Information available at:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
If IAM roles are not used you need to specify them either in the minion’s config file or as a profile. For example, to specify them in the minion’s config file:
sqs.keyid: GKTADJGHEIQSXMKKRBJ08H
sqs.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
A region may also be specified in the configuration:
sqs.region: us-east-1
It’s also possible to specify key, keyid and region via a profile, either as a passed in dict, or as a string to pull from pillars or minion config:
myprofile:
keyid: GKTADJGHEIQSXMKKRBJ08H
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
region: us-east-1
Added in version 1.0.0.
- saltext.boto3.modules.boto3_sqs.exists(name, region=None, key=None, keyid=None, profile=None)[source]¶
Check to see if a queue exists.
CLI Example:
salt myminion boto3_sqs.exists myqueue region=us-east-1
- saltext.boto3.modules.boto3_sqs.create(name, attributes=None, region=None, key=None, keyid=None, profile=None)[source]¶
Create an SQS queue.
CLI Example:
salt myminion boto3_sqs.create myqueue region=us-east-1
- saltext.boto3.modules.boto3_sqs.delete(name, region=None, key=None, keyid=None, profile=None)[source]¶
Delete an SQS queue.
CLI Example:
salt myminion boto3_sqs.delete myqueue region=us-east-1
- saltext.boto3.modules.boto3_sqs.list_(prefix='', region=None, key=None, keyid=None, profile=None)[source]¶
Return a list of the names of all visible queues.
CLI Example:
salt myminion boto3_sqs.list region=us-east-1