325 questions
1
vote
0
answers
49
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
43
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
votes
1
answer
35
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
0
answers
143
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;
$...
1
vote
1
answer
238
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....
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
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
221
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
2
answers
1k
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 --...
0
votes
1
answer
137
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-...
1
vote
0
answers
231
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 ...
0
votes
2
answers
2k
views
How do I know what version of the AWS PHP SDK I have?
We have updated our web site to PHP 8.2 and now the AWS SDK is throwing errors. I am not sure where to look in the files to figure out what version of the SDK I have installed. And it is very unclear ...
0
votes
0
answers
181
views
Laravel - AWS SDK PHP - The logs service does not have version: latest
I'm using https://github.com/maxbanton/cwh to send logs to cloudwatch. It works locally but cloud.
This is the erro that is returning on cloud. I specified lates and 2014-03-28 version.
laravel....
0
votes
2
answers
216
views
Why do I get this error using AWS Marketplace GetEntitlements?
I am trying to interface my php code with AWS Marketplace. There seems to be no example in PHP, anywhere.
$client = new MarketplaceMetering\MarketplaceMeteringClient($config);
$request = array();
$...
0
votes
1
answer
328
views
How do I get a file from S3 with aws-sdk-php?
I want to get a AWS S3 url to be able to download a file from a browser but I keep getting this error
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature ...
0
votes
2
answers
178
views
DynamoDB + PHP using aws sdk giving itemGet() schema mismatch errors
First, allow me to predicate that I am a relative noob to much of this, and self-taught in the rest.
I have a simple DynamoDB table set up named 'NeedsSystemData' that includes one record with the ...
0
votes
1
answer
856
views
Credentials Error in Laravel for AWS/SDK Laravel PHP
I am using PHP 8.1.21 and Laravel 10.14.1 in a pretty simple setup. I've implemented AWS SES for outgoing email before with no trouble but in this case I get the following error:
Aws\Common\Client\...
0
votes
1
answer
399
views
AWS pinpoint journey - how to transition users from one journey to another?
With AWS Pinpoint Journeys, I am running a 7step onboarding campaign spaced over 7 days.
While the campaign is running, I notice improvements I can make.
However you cannot edit a journey that is ...
0
votes
1
answer
841
views
How can I turn off 'block public access' in AWS S3 bucket settings programmatically using AWS PHP client?
I am using the AWS PHP Client to create buckets in S3 and upload objects to them. Previously I was using ACL for making the buckets and objects publicly accessible (to the world). Using ACL with my ...
-2
votes
1
answer
56
views
aws-php-sdk dynaomodb client creation issue
I have installed aws-php-sdk in Laravel and configured it correctly where putitem / getitem working when executing through HTTP/HTTPS in the browser and curl. However, when I try to execute the same ...
2
votes
1
answer
627
views
AWS SDK for PHP Eventbridge scheduler with api destination throws error as Provided Arn is not in correct format
Hi I am trying to create a schedule with aws eventbridge scheduler and reffering the documentation from the aws-sdk for php
I am getting an error as
Parameter is
not valid. Reason: Provided Arn is ...
0
votes
2
answers
1k
views
AWS SecretsManager GetSecretValue from EC2 standalone PHP program using AWS SDK results in AWS HTTP error: Client error: 400 Bad Request
I have written this standalone program in PHP for EC2 Instance to read secrets from SecretsManager (EC2 Instance and Secret are in the same region). I have AWS SDK PHAR in the same folder as the ...
1
vote
0
answers
171
views
How to get a secrete value using aws secrets manager without aws credentials in php
I want to retrieve value from the arn(AWS Resource Names) using aws secret manager in php. I already had the arn(arn:aws:secretsmanager:Regionxxx:xxxxx:secret:xxxxx). I get aws credentials exception ...
3
votes
2
answers
1k
views
Set AWS SQS visibility timeout for a message when creating the message
I am using the AWS SDK for PHP to push a message into an AWS SQS queue.
I'd like to be able to set the visibility timeout for specific messages to be different than the default. It would make sense to ...
2
votes
0
answers
717
views
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',
'...