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
4
votes
0 answers

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…
rohitmb
  • 151
  • 1
  • 3
  • 13
4
votes
1 answer

Put an "sort_by" on aws-php-sdk ListObjects

In my current project I need to check my S3 bucket contents every 4 seconds for new files. This script will run for around 3 hours every time that the service is used, and will have something around 2700 files by the end at a single prefix. This is…
Moisés
  • 1,324
  • 15
  • 43
4
votes
1 answer

Error using Laravel AWS SDK to Create Record Set in Route53

I am running into an error attempting to authenticate and create a new Route53 Record Set using the Amazon's PHP SDK and changeresourceRecordSets. Here's what I have attempted so far: Installed the AWS SDK for Laravel Used Amazon's IAM to create a…
Gunnar
  • 661
  • 1
  • 11
  • 29
4
votes
1 answer

Retrieve object user metadata in S3 - aws sdk v3 php

I'm looking to retrieve user-defined meta-data from objects in my S3 bucket, from the php sdk. As per Editing Object Meta Data, User metadata is stored with the object and returned with it, and begin with "x-amz-meta-" I have defined user metadata…
Anthony S
  • 145
  • 2
  • 10
4
votes
1 answer

How to link PHP backhand to cognito Developer Authenticated Identities for creating the token of the user which will login from android client?

I'm working on the android application which has the backhand in PHP and its has its own authentication process.I have an requirement to save the images related to the specific user on the Amazon web services using the S3 storage service.As we have…
Ajinkya
  • 2,286
  • 3
  • 18
  • 25
3
votes
1 answer

Provide the AWS PHP SDK with credentials via Symfony DotEnv

In a Symfony 4.3 application using symfony/dotenv 4.3.11 and aws/aws-sdk-php 3.173.13: I'd like to authenticate the AWS SDK using credentials provided via environment variables, and I'd like to use the dotenv component to provide those environment…
amacrobert
  • 2,707
  • 2
  • 28
  • 37
3
votes
0 answers

How to get the current AWS EC2 Instance ID using AWS SDK PHP

I would like to know if its possible to get the current AWS EC2 Instance ID using AWS SDK PHP. I know it can be achieved using @file_get_contents("http://169.254.169.254/latest/meta-data/instance-id"); But I dont want to use file_get_contents as it…
Rayiez
  • 1,420
  • 19
  • 20
3
votes
0 answers

PHP readfile() that takes blob from AWS S3 GetObject()

I am converting some legacy code that serves an image file from disk: $file_path = 'dir/image.jpg'; $readfile($file_path); Rather than read a file from disk, I want to get a file from AWS S3. So I use the PHP SDK to call GetObject(). This returns a…
paperduck
  • 1,175
  • 1
  • 16
  • 26
3
votes
4 answers

Is there a simple way to reduce the AWS PHP SDK to use only S3?

I would like to know is there a simple way to reduce the AWS PHP SDK to use only S3 ? I tried to delete certain directory but there are so many it will take an incredible time, and I have many errors depending on the files I delete (21,6Mo - 2 368…
Nicolas
  • 33
  • 3
3
votes
0 answers

AWS PHP SDK: How to package a template?

Our AWS architecture uses a few .sh scripts to create a stack, then a bastion and a few other things. I'm trying to migrate these scripts to PHP scripts using the aws-sdk-php package. I had this command in a package.sh file: aws cloudformation…
Vico
  • 1,696
  • 1
  • 24
  • 57
3
votes
1 answer

Credentials must be an instance of Aws\\Credentials\\CredentialsInterface error on PHP SDK with SQS

I am trying to delete a message from SQS in AWS using the php SDK. I have the following configuration. $sqsClient = new SqsClient([ 'version' => '2012-11-05', 'region' => 'us-east-1', 'credentials' => [ …
Happy Coder
  • 4,255
  • 13
  • 75
  • 152
3
votes
0 answers

Why does aws s3 getObject executes slowly even with small files?

I am relatively new to amazon web services. There is problem that came up while I was coding my new web app. I am currently storing profile pictures in an s3 bucket. I don’t want these profile pictures to be seen by the public, only authorized…
Adam8899
  • 231
  • 1
  • 2
  • 7
3
votes
2 answers

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…
Jessie Edmisten
  • 240
  • 1
  • 2
  • 11
3
votes
1 answer

AWS SQS error : SignatureDoesNotMatch HTTP error: 403

I'm working on a face tracking thought video AWS Rekognition (StartFaceSearch). It will return the job id. I have setup everything SQS SNS parts. Here my problem is i can't able to get a message from SQS using receiveMessage(). Even listQueues()…
Pranavan SP
  • 1,785
  • 1
  • 17
  • 33
3
votes
1 answer

Get AWS IAM credentials from PHP SDK

I use AWS Services regularly and have my PHP SDK automatically retrieve credentials from my ec2 instance when I connect with Amazon. I now have a library that I want to use which also requires my AWS secret key and access key to be included when I…
bertmaclin
  • 304
  • 3
  • 16
1 2
3
20 21