Skip to main content
-3 votes
0 answers
29 views

How I can access AWS Lambda's environmental variables from function written in PHP?

My plan is to store "Access key" and "Secret access key" in Lambda's environmental variables. Then access it from PHP code in Lambda function. Then use it to access AWS Secrets ...
user3299199's user avatar
1 vote
1 answer
97 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 ...
Roukmoute's user avatar
  • 789
-1 votes
1 answer
18 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 ...
Nitesh Bhargava's user avatar
0 votes
0 answers
10 views

AWS php SDK issue while using for Pinpoint t sms

When I use AWS php SDK for pinpoint sms api sometimes it's getting sms from a number other than AWS not that the same content that I have given. and I think it's not from AWS , how to solve this and ...
Muhammed Ramees's user avatar
0 votes
0 answers
95 views

How to enable S3 transfer acceleration on presigned POST

I enabled transfer acceleration for an s3 bucket using the aws PHP sdk, I was able to create a presigned download URL that uses transfer acceleration using the following code: use Aws\S3\S3Client; $...
Luigi Corciulo's user avatar
0 votes
0 answers
91 views

I want to configure AWS s3 bucket with my wordpress plugin

Here is my example plugin for AWS S3 configuration Here is my php my-s3-plugin.php <?php /* Plugin Name: My S3 Plugin Description: A plugin to integrate AWS S3 with WordPress. Version: 1.0 Author: ...
Riddhish's user avatar
0 votes
1 answer
144 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) ...
Hadi Aghandeh's user avatar
0 votes
0 answers
23 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
171 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
115 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
2 votes
1 answer
2k 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
376 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
926 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
  • 33
0 votes
1 answer
110 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
192 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,888

15 30 50 per page
1
2 3 4 5
22