Closed wodor closed 10 months ago
if I understand it correctly you can already do what you want:
<?php
$sqsClient->getAWSClient()->tagQueue([
'@region' => $dest->getRegion(),
'QueueUrl' => $result->get('QueueUrl'),
'Tags' => [
'Product' => 'myProduc',
'ServiceName' => 'workers',
'Environment' => 'qa'
],
]);
AWS sdk contains
tagQueue
anduntagQueue
methods that were not exposed via this client. This is the only way to tag a queue, as tagging on creation does not work in AWS php sdk.I am aware that using it requires some work - writing custom SqsContext and changing declareQueue like this
If the Authors of enqueue are interested in it I can PR a change to
SqsDestination
that would allow setting tags and using them in this updated method.