Questions tagged [aws-sdk-php]

0

votes
0

answer
8

Views

AWS SDK PHP - How to load multiple files with one link? How to create a zip file?

AWS PHP SDK I have a bucket, and there are folders with the following files: folder1 -- photo1 -- photo2 -- photo3 -- photo4 folder2 -- pic1 -- pic2 -- pic3 -- pic4 How can I create a download link for these files: photo1, photo4, pic2? Don't download files on a separate link. One more que...
0

votes
0

answer
7

Views

Headers already sent in aws-sdk-php

In below function of described file I am getting error as Headers already sent in /vendor/aws/aws-sdk-php/src/TraceMiddleware.php $this->config = $config + [ 'logfn' => function ($value) { echo $value; } ]; Can I change from echo to return? I am using php7.2 and yii2 framework
Vatsal Patel
2

votes
2

answer
55

Views

AWS EFS - Script to create mount target after creating the file system

I am writing a script that will create an EFS file system with a name from input. I am using the AWS SDK for PHP Version 3. I am able to create the file system using the createFileSystem command. This new file system is not usable until it has a mount target created. If I run the CreateMountTarget...
jess9067
3

votes
1

answer
79

Views

Overwriting retries / retry decider for individual calls in AWS SDK

Is there a way of overwriting retries for an individual call in AWS SDK for PHP? The following code explains the question: // Create client with a default of 2 retries $sqsClient = new sqsClient('2012-11-05', ['retries' => 2]); // This will retry twice to get the queue attributes (perfect) try { $...
Robbie
4

votes
0

answer
127

Views

php aws sns subscription with number filter policy and send notification to subscribers in range

I have a requirement, where I want to add number (UNIX timestamp) filter policy to device subscription, and while publishing a notification to the topic add message attributes with range policy, but I get internal server response from AWS SDK. Here is what I'm doing while publishing a message to dev...
rohitmb