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 Result: True Comment: Setting ReceiveMessageWaitTimeSeconds attribute(s). Started: 21:42:42.478834 Duration: 635.271 ms Changes: ---...