Questions tagged [aws-php-sdk]

Amazon Web Services SDK for PHP

The AWS SDK for PHP enables PHP developers to easily work with Amazon Web Services and build scalable solutions with Amazon S3, Amazon DynamoDB, Amazon Glacier, and more.

Download Link

User Guide

API Documentation

314 questions
265
votes
63 answers

Amazon S3 - How to fix 'The request signature we calculated does not match the signature' error?

I have searched on the web for over two days now, and probably have looked through most of the online documented scenarios and workarounds, but nothing worked for me so far. I am on AWS SDK for PHP V2.8.7 running on PHP 5.3. I am trying to connect…
Joseph Lam
  • 5,289
  • 3
  • 14
  • 13
18
votes
1 answer

AWS Elastic Beanstalk - Environment must have instance profile associated with it

I am working on a project that will programmatically create environments in AWS elastic beanstalk. I am using the AWS SDK for PHP Version 3. My script creates the environment. From the AWS console, the environment is displayed in gray and says that…
15
votes
3 answers

AWS Mobile Push with users that may be logged into multiple devices

Our apps are being developed for both Android and iOS. We are using AWS SNS Mobile Push to push messages to both GCM and APNS. The back end is PHP and so it uses the AWS PHP SDK. Until now, our system has been saving 1 Endpoint ARN per user. We then…
14
votes
1 answer

AWS S3 get images via Proxy - PHP

I have a bucket at S3 where i have uploaded the images. Now i am fetching the images using AWS - SDK. Now i want to bypass the image via Proxy $client = new Aws\S3\S3Client([ 'version' => 'latest', 'region' =>…
Hitu Bansal
  • 2,917
  • 10
  • 52
  • 87
13
votes
3 answers

AWS S3 Access Denied on delete

I have a bucket that I can write to with no problem. However, when I try to delete an object, I get an error ... AccessDeniedException in NamespaceExceptionFactory.php line 91 Following the very basic example here, I came up with this command…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
11
votes
4 answers

Cannot read credentials from /.aws/credentials

I am trying to integrate AWS PHP SDK for codeigniter But its showing error as follows An uncaught Exception was encountered Type: Aws\Exception\CredentialsException Message: Cannot read credentials from /.aws/credentials Filename:…
Deepali Jadhav
  • 540
  • 2
  • 8
  • 18
9
votes
2 answers

How to copy S3 objects between regions with Amazon AWS PHP SDK?

I'm trying to copy Amazon AWS S3 objects between two buckets in two different regions with Amazon AWS PHP SDK v3. This would be a one-time process, so I don't need cross-region replication. Tried to use copyObject() but there is no way to specify…
bart
  • 14,958
  • 21
  • 75
  • 105
8
votes
5 answers

why aws.phar runs once then won't load again?

I install aws sdk for php in my elastic beanstalk application using phar file,: require_once __DIR__ . '/../AWS-SDK/aws.phar'; when I run the script for the first time, it succeed ! but when I try again I got this error : Warning:…
david
  • 3,310
  • 7
  • 36
  • 59
8
votes
1 answer

Benefits of using AWS SNS vs directly working with Apple's APNS

I have an app logic that requires me to segment user devices to groups which are subscribed to different types of "channels/topics". I then want to send a broadcast message to all the subscribers of a specific topic or channel. I can have as many as…
7
votes
2 answers

Error retrieving credentials from the instance profile metadata server.Failed to connect to 169.254.169.254 port 80: No route to host

I am trying to create a sub-domain using Route53 with aws-php-sdk. but I am getting this error again and again: [2017-06-16 12:17:00] local.ERROR: Aws\Exception\CredentialsException: Error retrieving credentials from the instance profile metadata…
Tarun Kumar
  • 71
  • 1
  • 1
  • 8
7
votes
1 answer

S3 Batch / Parallel Upload Error with PHP SDK

I followed these codes to batch PutObject into S3. I am using the latest PHP SDK (3.x). But I am getting: Argument 1 passed to Aws\AwsClient::execute() must implement interface Aws\CommandInterface, array given $commands = array(); $commands[] =…
twb
  • 1,248
  • 4
  • 18
  • 31
7
votes
3 answers

Specify Content-Type in AWS PHP's upload function

I am migrating my code from AWS PHP SDK1 to SDK2 (https://github.com/aws/aws-sdk-php). I have an image uploader. In my previous version, I would specify the Content-Type of my image like so: $response = $this->s3->create_object( …
Nathan H
  • 48,033
  • 60
  • 165
  • 247
6
votes
3 answers

How to securely play .m3u8 streaming file from AWS S3 using CloudFront?

I'm using CloudFront Signed URL to display images and videos from S3 to be secured. It works well on images and other videos except for .m3u8 file. I used AWS PHP SDK and here's my code.
6
votes
2 answers

How to set ECS Service minimum & maximum tasks

How can I set the minimum and maximum number of tasks of an ECS Service through an API call? I know you can set the desired count of tasks through the following api, but I'm not seeing anywhere to set the minimum and maximum tasks? Am I missing…
6
votes
3 answers

How to copy whole s3 folders using php aws sdk?

I want copy a folder in aws s3 bucket. I am able to copy files but requirement is I should be able to copy whole s3 folder with some other name. example: if folder name is project1 I need to copy it as project1-copy in bucket called my_bucket. I…
Deepak N
  • 1,408
  • 3
  • 15
  • 37
1
2 3
20 21