Home > Software engineering >  Do I really need to be Installing AWS Common Runtime for PHP to work with the AWS PHP SDK
Do I really need to be Installing AWS Common Runtime for PHP to work with the AWS PHP SDK

Time:06-07

I'm using the AWS SKP for PHP in a Laravel app. When I try to create a client (for EventBridge in my case) I am getting the following error:

Aws\Exception\CommonRuntimeException : AWS Common Runtime for PHP is required to use Signature V4A. 

The error includes a link with information on installing it, however, I have kind of a hard time believing that Jeff Bazos has abused his developers so horribly they have decided to create an API which can only run on their own Runtime just to spite any developer trying to use their API.

I haven't found much at all about this online which seems unlikely, but is this strictly necessary or is there was way to authenticate without going through the process of trying to install the AWS Common Runtime on my docker box?

CodePudding user response:

You cannot just "install it", but have to build a PHP module, to meet dependency aws/aws-crt-php:

https://github.com/awslabs/aws-crt-php

CodePudding user response:

To learn how to setup the AWS SDK for PHP, refer to the AWS PHP Developer Guide. Not sure that you are aware of this DEV guide.

There is a lot of information in this Guide meant to get you up and running. See:

Getting Started with the AWS SDK for PHP Version 3

  • Related