Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [aws-php-sdk]

Amazon Web Services SDK for PHP

0 votes
0 answers
8 views

Getting "Event destination is not provided." error when using EventBridgeDestination as Event destination AWS PHP SDK

In my PHP Laravel web app I am using AWS PHP SDK and I want to use the createConfigurationSetEventDestination method of the SesV2Client class. When I execute this method by passing the proper ...
Furkan's user avatar
  • 19
1 vote
1 answer
19 views

AWS cognito refreshToken error "Invalid Refresh Token"

User login using API we get AccessToken, RefreshToken and IdToken. AccessToken works only for 1 hour set on the App Client period. Based on RefreshToken we can get a new AccessToken & RefreshToken....
Dipak PHP's user avatar
1 vote
0 answers
81 views

How do I list objects from public AWS S3 buckets using aws-sdk-php (v3.305.1) using anonymous clients?

So I have a public bucket which can directly be access by a link (can see the data if I copy paste that link on the browser). However, when I try access the bucket via aws-sdk-php (v3.305.1) library ...
MajesticOverlord's user avatar
0 votes
0 answers
42 views

AWS SNS Notification Invalid Post Data

I'm having issues with the AWS PHP SDK and SNS Notifications in a Laravel application. I've had a similar setup working in the past and copying that setup, but it's not working. The only difference is ...
hyphen's user avatar
  • 3,134
1 vote
1 answer
566 views

How to fix a cURL error 60: SSL certificate problem using a PutObject in AWS

First and foremost, I am a total noob when it comes to using Amazon's SDK for PHP so bare with me. I am trying to follow along with a video tutorial on how to upload a file to an AWS S3 bucket using ...
Tychoash's user avatar
0 votes
1 answer
197 views

aws-sdk-php -- Unable to parse error information from response - Error parsing JSON: Syntax error"

trying to send a sqs on php using aws-sdk, trying to hit a localhost endpoint, we have some lambda functions running on localhost. This is the client $this->client = new SqsClient([ ...
Francisco Mauri's user avatar
0 votes
1 answer
530 views

Bedrock API returns empty body

I'm usng AWS PHP SDK to call bedrock API. Here is the code: $this->bedrockRuntimeClient = new BedrockRuntimeClient([ 'region' => $region, 'version' => $version, '...
primerg's user avatar
  • 23
0 votes
1 answer
90 views

Pre-Signed URL for S3 Bucket URL: Options Available

I am able to generate presigned URL for an S3 object using php. But it has X-Amz-Credential parameter which contains AWS Access Key ID as value; Is it Ok? Can we generate pre-signed url without this ...
Bhargava's user avatar
  • 421
0 votes
1 answer
107 views

AWS SignatureV4 - Request Signature sometimes does not match?

We are using AWS SignatureV4 to make requests to an API Gateway using the IAM authoriser and are finding that signing only works some of the time... We are signing requests using the AWS SDK. $...
ComputerUser's user avatar
  • 4,858
0 votes
1 answer
727 views

How can I resolve the error "The security token included in the request is invalid" when running bedrock from aws php sdk

I am encountering an issue while utilizing the AWS PHP SDK to invoke the Bedrock service using AWS access key and secret key provided by my organization(the account managed by the organization). The ...
SKY-BIRD Web Media's user avatar
0 votes
2 answers
346 views

sorting an S3 bucket by last updated date

According to https://stackoverflow.com/a/65675842/569976 , you can use the AWS S3 CLI client to sort the results of a list-objects-v2 by the last modified date, as follows: aws s3api list-objects --...
neubert's user avatar
  • 16.5k
2 votes
1 answer
642 views

Request to AWS SES API failed. Reason: Error executing "SendRawEmail" in Laravel 10

I am trying to send emails with AWS SES. I followed the Laravel official doc and configured the application. but when I tried to send an email I got the following error. I was using ses as MAIL_MAILER ...
nasirkhan's user avatar
  • 10.4k
0 votes
1 answer
104 views

AWS SDK PHP getItem from DynamoDB returns empty

I am trying to interact with AWS DynamoDB from my website with AWS SDK PHP 3.0 using the code below: $client = new \Aws\DynamoDb\DynamoDbClient(['version' => 'latest', 'region' => "ca-...
Medical physicist's user avatar
0 votes
0 answers
166 views

AWS S3 presigned PUT URL from aws-php-sdk returns malformed or otherwise invalid token

I am using Laravel v8 to craft a pre-signed upload url to s3 private bucket. The API itself runs on an EC2 instance with role set for full bucket access. When logged into the ec2 instance and using ...
DGregory's user avatar
1 vote
0 answers
135 views

AWS account:ListRegions 403 forbidden via PHP

I need to list all regions of an AWS account (part of an organization). I plan to use "AccountClient" with "ListRegions". I connected to the account via a role named 'myrole' witch ...
kent2004's user avatar

15 30 50 per page
1
2 3 4 5
22