Skip to content
Advertisement

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

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:

AwsExceptionCommonRuntimeException : 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?

Advertisement

Answer

You don’t need it unless you’re using very specific features. It works perfectly without it for almost all use cases. Right now there’s one method on eventbridge that needs it, and multi-region access points for S3.

General authentication information can be found here:https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html

Environment variables, the config file, or hardcoding (not recommended for security reasons) are gonna be the fastest way to get it up and running.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement