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
2 answers

Amazon AWS Elastic Transcode createJob and readJob not returning Input DetectedProperties data

I have some trouble with PHP AWS SDK I need to get original video file dimensions, width and height. Reading documentation these data could be retrieved by reading result structure from createJob and readJob functions, but in "Input" section I get…
rampo83
  • 1
  • 1
0
votes
0 answers

aws-sdk-php v3 sns not working for me

I really want to publish a lambda subscriber to an SNS topic. It works in amazon console, but with php-sdk it does not. When I execute the php code and I look in CloudWatch, there's nothing (no response). Why my SNS did not work? it is my code, but…
0
votes
1 answer

SQS RedrivePolicy PHP SDK

Iam new to SQS php SDK, Iam not able to override RedrivePolicy using setQueueAttributes method :( json string is not accepted as an attribute and I cannot find any clear resources to help me.
Code lover
  • 11
  • 1
0
votes
1 answer

Replacement for getDescribeInstancesIterator in the new PHP AWS SDK (^3)?

In the previous version of AWS SDK there were many handy functions like getDescribeInstancesIterator which would return an array iterator for results (in this case an array of instances matching the filters). This function (and similar) have been…
supersan
  • 5,671
  • 3
  • 45
  • 64
0
votes
1 answer

How to call AWS S3 image URL from android(Client) when the authentication with S3 is from server-side(php+ aws sdk php v3)

I have android as front-end, (php,mysql) as back-end and AWS as the infrastructure host. I am developing APIs using laravel to be consumed by the android app but having problem figuring out how to display images hosted on S3 in android. I am able to…
0
votes
2 answers

Elastic Beanstalk can't connect DynamoDB

I'm really newbie with aws, then sorry if it's a silly question. I did a website which connects with an online DynamoDB table and it is fully working on my local, but when I deploy the website code in my Elastic Beanstalk environment, it doesn't…
0
votes
1 answer

AWS SDK 2.8 Stuck at getIterator() function with an AccessDenied/403

Hope someone could help out. I am new to the AWS SDK, and we have bucket, with sub buckets. I have the correct Access Key and Secret, since I can log in with CyberDuck and modify/delete files in the bucket, but when I try to list out the bucket…
Aaron Olin
  • 349
  • 2
  • 7
0
votes
1 answer

runInstances() in AWS SDK PHP 3.0 returns blank after successful launch of an instance

Following this, I used runInstances method like the following to launch and instance: $new_instance_config = array( 'DryRun' => false, 'ImageId' => AMI_ID, 'MinCount' => 1, 'MaxCount' => 1, …
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
1 answer

Executing a PHP script on Amazon Linux instance bootup

I want to launch an Amazon Linux EC2 instance and on boot-up I want to run a PHP script. I am using the AWS PHP SDK. Referring to this, I understand that I can run a shell script by passing it as userdata. However, is it possible to run a PHP script…
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
2 answers

Getting running time for an AWS instance

I am using the PHP AWS SDK for getting all the running instances in my account. I used the following API: $this->ec2Client = Ec2Client::factory(array( 'profile' => AWS_PROFILE, //contains my credentials 'region' =>…
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
0 answers

Delete button/link not appearing after the file upload

After the image upload via fine uploader, delete button does not appears. I am not able to figure about the missing config, can some one help ? JS deleteFile: { enabled: true, method: "POST", endpoint:…
bizready
  • 139
  • 3
  • 14
0
votes
1 answer

Initial file list not showing actual files

I have implemented initFiles to display already s3 uploaded files, but actual image thumbnails are not showing. Also, I can not click on the default thumbnail that is shown (see image). How can I see actual images and link works? I have below JS…
bizready
  • 139
  • 3
  • 14
0
votes
3 answers

AWS PHP SDK getting class not found fatal error

I'm trying to read messages from my SQS but I can't get that far as I'm having trouble installing the PHP SDK. I followed the instructions and installed via composer. My code for testing purposes is: require 'vendor/autoload.php'; $sqs_credentials…
user2029890
  • 2,493
  • 6
  • 34
  • 65
0
votes
1 answer

PHP - AWS CloudWatch Logs return tooNewLogEventsStartIndex

I'm using AWS PHP SDK in order to allow clients application to send batch of Log Events to my central log @ AWS CloudWatch Logs. Using the PutLogEvents() method i'm pushing a batch of logs to AWS and receive the following response with…
Asaf Nevo
  • 11,338
  • 23
  • 79
  • 154
0
votes
1 answer

PHPUnit - Mocking a Guzzle / S3 Transfer Class Object With Promise Methods

I have a function that looks like: public function downloadProjectFolder($projectId, $taskToken){ // Download the project directory if it isn't on the server if(is_dir('/path/to/folder/') === false){ $manager =…
Lloyd Banks
  • 35,740
  • 58
  • 156
  • 248