324 questions
Advice
0 votes
7 replies
69 views
URL format for AWS S3 network requests
I maintain a project that stores files in S3, and uses local filesystem as fallback for local development. Good or bad, it's been working reliably for 9 years. I want to add a S3 emulator to develop ...
1 vote
0 answers
66 views
How to use API key to search in AWS Locations Place Index I don't manage?
TL;DR Has anyone been able to get AWS Location Place Index working with PHP SDK & API Key without a custom Place Index? AWS Location service recently dropped the requirement to provision your own ...
0 votes
0 answers
62 views
OpenSearch PHP Client: 404 Error on Document Insertion in Production instance (Serverless)
Problem I'm experiencing a 404 NotFoundHttpException when trying to insert documents into an OpenSearch products index using the opensearch-project/opensearch-php client in a Laravel application, but ...
0 votes
0 answers
49 views
Laravel 12 - AWS manifest.json not found
I'm working on a project in Laravel 12, that uploads to AWS S3 storage, every time I upload with Storage:disk('s3')... I get an error that the manifest.json file was not found in the aws package. ...
1 vote
1 answer
426 views
AWS SDK PHP – How to add Content-MD5 for PutBucketLifecycleConfiguration?
I'm using AWS SDK for PHP (Version 3) to configure S3 bucket lifecycle rules via PutBucketLifecycleConfiguration. However, I’m getting the following error: Aws\S3\Exception\S3Exception: Error ...
-1 votes
1 answer
41 views
Error: Call to undefined method AwsCommand::getMetricsBuilder() PutObject - during file upload to s3
Using latest version of aws-sdk-php, while uploading object to s3. Getting "error": { "type": 1, "message": "Uncaught Error: Call to ...
0 votes
1 answer
224 views
AWS Token Issue with Bref and Laravel on Lambda: Invalid Configuration Value for 'token'
I am using Bref to run Laravel on AWS Lambda, and here is my serverless.yml configuration: service: lambdajob provider: name: aws # The AWS region in which to deploy (us-east-1 is the default) ...
1 vote
1 answer
265 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....
1 vote
0 answers
163 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 ...
3 votes
1 answer
3k 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 ...
0 votes
1 answer
425 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([ ...
0 votes
1 answer
1k 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, '...
0 votes
1 answer
143 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 ...
0 votes
1 answer
231 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. $...
0 votes
1 answer
3k 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 ...