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

AWS SQS Delete Batch Message, Error: TooManyEntriesInBatchRequest

I am trying to delete AWS SQS Batch messages at a time, it deletes first 10 messages of array chunk but not deleting 2nd chunk, throw error AWS.SimpleQueueService.TooManyEntriesInBatchRequest (client): Maximum number of entries per request are…
Qazi
  • 5,015
  • 8
  • 42
  • 62
2
votes
1 answer

AWS Route 53 - Get hosted zone by domain name?

Is there a way to retrieve a Hosted Zone by Domain Name ? I thought using listHostedZonesByName( 'pagefoo.io' ) would do the trick, but it returns unrelated results: pagefoo.net, pagefoo.org instead of just pagefoo.io. Array ( [0] => Array …
standac
  • 1,027
  • 1
  • 11
  • 26
2
votes
1 answer

Zipping 100's of files stored on S3

We use S3 to store various media uploaded via our application such as images, documents etc. We work in the property software industry and as a means of exchanging data stored in our system with property portals a common exchange format between…
Adrian Walls
  • 852
  • 3
  • 19
  • 31
2
votes
1 answer

how to connect to amazon aws s3 with aws-sdk-php?

I want to rename an image on S3 with aws-sdk-php. My code is as follows: array( 'key' => 'mykey', 'secret'…
cari
  • 2,251
  • 2
  • 18
  • 27
2
votes
0 answers

500 (Internal Server Error) when uploading an Image to AWS S3 via Elastic Beanstalk Application

My task is to make an application using AWS Elastic Beanstalk and S3 where an Image can be uploaded/deleted from the user. I am using the BlueImp library : "https://github.com/blueimp/jQuery-File-Upload" as well as the modified version of…
2
votes
3 answers

How to create/write a text file instead of uploading to S3 bucket

Is there a method to write/create a text file to S3 bucket in AWS SDK?
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67
2
votes
2 answers

set up expiration for putObject in s3 php sdk

This is working codes for creating bucket and putObject: $bucket = uniqid("php-sdk-sample-", true); echo "Creating bucket named {$bucket}\n"; $result = $client->createBucket(array( 'Bucket' => $bucket )); // Wait until the bucket is created $key =…
kaya_
  • 97
  • 2
  • 10
2
votes
1 answer

AWS-PHP-SDK / SNS direct addressing returns error

Hi I am using Laravel 4 setup to make use of AWS SNS to send a push message to my iOS device, the publish command to my device works well from AWS console. I then tried from PHP: $sns = AWS::get('sns'); $sns->publish(array( …
Moshe Marciano
  • 2,349
  • 4
  • 33
  • 44
2
votes
2 answers

Copy AMI to a separate region from a separate account

I have been trying to migrate an AMI from my AWS account A (ap-southeast-2) to Account B (us-east-1). In my account I have given launch permissions to my Account A. However when I run below code, $result = $this->destination_ec2_client->copyImage( …
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
2
votes
3 answers

How to get user-id or AWS account id via AWS PHP SDK

Is there anyway to get UserId or a.k.a. AWS Account ID? I have checked the documentation but could not locate (...or probably it doesn't exists...) a method call which returns the UserId.
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
1
vote
1 answer

athena query using aws php sdk

I am trying to run a athena query using aws php sdk. However I am getting an empty array as a result. Can someone please point me on what's wrong with my code require '/usr/bin/vendor/autoload.php'; use Aws\Athena\AthenaClient; $options = [ …
Santosh Pillai
  • 1,311
  • 1
  • 20
  • 31
1
vote
0 answers

How can I query AWS Batch for jobs matching multiple jobStatus values in AWS PHP SDK Version 3?

I am currently working on a PHP project using the AWS PHP SDK. I have a data import process that utilizes AWS batch. The PHP application needs to be able to check AWS for jobs that are not complete, prior to letting the user start a new job. I am…
space97
  • 153
  • 1
  • 4
  • 19
1
vote
0 answers

How to set hardcode credentials aws-sdk php SesClient

I'm trying to use SesClient from aws sdk php to send email but it returns the following error use Aws\Ses\SesClient; $SesClient = new SesClient([ 'version' => 'latest', 'region' => 'us-east-1', 'credentials' =>…
1
vote
1 answer

Amazon Cognito - Advanced Security Device of User is not listed correctly

I am using Amazon Cognito with Advanced Security enabled (currently in AUDIT only). I am not using a hosted UI. I call Cognito via the AWS SDK in PHP from a backend server while the frontend is gathering the data required for Advanced Security…
Havrin
  • 83
  • 8
1
vote
1 answer

AWS SDK: How to get the response body for a 404

I'm attempting to access a remote GraphQL server used by a publicly available web site. I've pieced together the appropriate code to interact with the database and can run it locally successfully. It involves me getting some…
Ben
  • 60,438
  • 111
  • 314
  • 488