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
0
votes
1 answer

AWS S3 list files in specific folder

I'm trying to list the files and folders in a specific folder in a S3 bucket. I would like to return the subfolder names in that folder, but not the contents of those subfolders. I'm not sure if it can be done with the delimiter, but this is what I…
austinh
  • 1,061
  • 6
  • 13
  • 34
0
votes
1 answer

AWS PHP SDK 3.0 Sts client throwing error of non scoped region when region is provided

Upgraded to the 3.0 PHP sdk, that was probably a mistake since it broke everything. I'm trying to create an sts client but it keep getting an error Error executing "GetFederationToken" on "https://sts.amazonaws.com"; AWS HTTP error: Client error:…
Brian
  • 4,328
  • 13
  • 58
  • 103
0
votes
1 answer

AWS SNS NOTIFICATION IN GCM

When I try to create end point of SNS application using php.phar SDk and php code I'm getting the permission issue of user. **Fatal error: Uncaught Aws\Sns\Exception\AuthorizationErrorException: AWS Error Code: AuthorizationError, Status Code: 403,…
0
votes
3 answers

AWS PHP SDK Credentials error S

I get the following error when trying to create an SNSClient object. InstanceProfileCredentialsException in InstanceMetadataClient.php line 85: Error retrieving credentials from the instance profile metadata server. When you are not running inside…
Pavan
  • 17,840
  • 8
  • 59
  • 100
0
votes
1 answer

Move files from EC2 to S3 and then delete from EC2

I'm migrating files from one remote server to S3. There are about 10k files (all accessible via http URLs from the remote server). The total size is about 300GB (no individual file is more than 1GB). I'm trying to figure out the most efficient way…
chips
  • 2,296
  • 2
  • 16
  • 17
0
votes
3 answers

AWS SES Guzzle Error when sending email

I have set up AWS Ses service using PHP SDK: $this->client = SesClient::factory([ 'key' => $params['key'], 'secretKey' => $params['secret_key'], 'region' => 'eu-west-1', 'base_url' =>…
Justinas
  • 41,402
  • 5
  • 66
  • 96
0
votes
1 answer

Correct Privileges in Amazon S3 Bucket Policy for AWS PHP SDK use

I have server S3 buckets belonging to different clients. I am using AWS SDK for PHP in my application to upload photos to the S3 bucket. I am using the AWS SDK for Laravel 4 to be exact but I don't think the issue is with this specific…
Neo
  • 11,078
  • 2
  • 68
  • 79
0
votes
1 answer

Can I install / use Amazon PHP SDK from a shared hosting environment?

Im interested in learning to use Amazon S3 PHP SDK and see references to 'installing' it (as opposed to it just being a series of files that I just upload to my hosting account and use) and all the tutorials seem to indicate I have to have command…
tamak
  • 1,541
  • 2
  • 19
  • 39
0
votes
2 answers

How do i upload to amazon s3 using Heroku composer amazon aws sdk

I'm using heroku and i'm following this tutorial here, https://devcenter.heroku.com/articles/s3-upload-php I have placed the composer require line in my composer.json file as shown below. { "require" : { "silex/silex": "~1.1", …
0
votes
1 answer

AWS EC2 PHP SDK - DescribeInstances With Tag Key and Value

I have EC2 instances tagged with key environment and value production. I am trying to return them using the following: $result = $ec2_client->describeInstances(array( "Filters" => array( array( "Name" => "tag", …
Lloyd Banks
  • 35,740
  • 58
  • 156
  • 248
0
votes
2 answers

AWS Cloud Search replace indexes with new one

I'm using AWS PHP API to do some stuff with AWS Cloud Search. Right now I have static indexes. But I need to replace them dynamically. E.g. current indexes are: name | date | content and I want to replace them with time | description |…
Justinas
  • 41,402
  • 5
  • 66
  • 96
0
votes
1 answer

AWS Simple Workflow - respondDecisionTaskCompleted Not Working?

I am currently using the PHP SDK for SWF. I successfully pull decision tasks using: $result = $client->pollForDecisionTask(array( "domain" => "test", "taskList" => array( "name" => "mainTaskList" ), "identify" => "default", …
Lloyd Banks
  • 35,740
  • 58
  • 156
  • 248
0
votes
1 answer

unable to create new ec2 instance after initial creation

I have the following code: $result = $ec2->runInstances(array( // ImageId is required 'ImageId' => $image, // MinCount is required 'MinCount' => 1, // MaxCount is required 'MaxCount' =>…
arrowill12
  • 1,784
  • 4
  • 29
  • 54
0
votes
2 answers

Store and retrieve nested JSON in DynamoDB with PHP SDK

I have created the following table in DynamoDB: Field1: messageId / Type: String / Example value: 4873dd28-190a-4363-8299-403c535e160f Field2: microtime / Type: Number / Example value: 14143960092414 Field3: data / Type: nested JSON-Array / Example…
Camillo
  • 544
  • 1
  • 6
  • 24
0
votes
1 answer

aws s3 php: fails to upload directory using UploadSyncBuilder

I am trying to upload a 14MB directory to s3 using aws php sdk. These are following scenarios and their results Upload from my local system(india) to s3(us-east-1): success Upload from ec2(ap-southeast-1) to s3(ap-southeast-1): success Upload from…
hridayesh
  • 1,123
  • 1
  • 14
  • 36
1 2 3
20
21