Configuring Simple Queue Service
Message queuing is considered to be one of the integral parts of application management in the modern world. AWS provides a feature for this task called Simple Queue Service (SQS). In this recipe, we will learn how to configure SQS using Salt modules.
How to do it...
- Create and edit
/opt/ salt-cookbook/production/aws/sqs.sls
to have the following entries:saltcookbookqueue: boto_sqs.present: - region: us-west-2 - keyid: <access-key> - key: '<secret-key>' - attributes: ReceiveMessageWaitTimeSeconds: 20
- Apply the state to the Salt master by using the following command:
[root@salt-master aws]# salt 'salt-master' state.sls aws.sqs saltenv=production salt-master: ---------- ID: saltcookbookqueue Function: boto_sqs.present ...
Get Salt Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.