Last active
December 8, 2020 06:03
-
-
Save johnstanfield/d9204b2a0337a4592c1d56e9b3faf43b to your computer and use it in GitHub Desktop.
FIFO queues in PHP v2 SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# problem: | |
# - you have a FIFO SQS queue at AWS but you're running an older version (v2) of the AWS SDK for PHP | |
# - you get the error "The request must contain the parameter MessageGroupId" | |
# - this is because v2 of the SDK is older than FIFO queues | |
# solution: | |
# - just add the parameters to the resource file | |
# - either by pasting or applying the patch below | |
# | |
# vendor/aws/aws-sdk-php/src/Aws/Sqs/Resources/sqs-2012-11-05.php.patch | |
diff --git a/vendor/aws/aws-sdk-php/src/Aws/Sqs/Resources/sqs-2012-11-05.php b/vendor/aws/aws-sdk-php/src/Aws/Sqs/Resources/sqs-2012-11-05.php | |
index 59b12ebdb..85aa6ed7b 100644 | |
--- a/vendor/aws/aws-sdk-php/src/Aws/Sqs/Resources/sqs-2012-11-05.php | |
+++ b/vendor/aws/aws-sdk-php/src/Aws/Sqs/Resources/sqs-2012-11-05.php | |
@@ -690,6 +690,16 @@ return array ( | |
'type' => 'string', | |
'location' => 'aws.query', | |
), | |
+ 'MessageGroupId' => array( | |
+ 'required' => false, | |
+ 'type' => 'string', | |
+ 'location' => 'aws.query', | |
+ ), | |
+ 'MessageDeduplicationId' => array( | |
+ 'required' => false, | |
+ 'type' => 'string', | |
+ 'location' => 'aws.query', | |
+ ), | |
'DelaySeconds' => array( | |
'type' => 'numeric', | |
'location' => 'aws.query', | |
@@ -788,6 +798,14 @@ return array ( | |
'required' => true, | |
'type' => 'string', | |
), | |
+ 'MessageGroupId' => array( | |
+ 'required' => false, | |
+ 'type' => 'string', | |
+ ), | |
+ 'MessageDeduplicationId' => array( | |
+ 'required' => false, | |
+ 'type' => 'string', | |
+ ), | |
'DelaySeconds' => array( | |
'type' => 'numeric', | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment