简体   繁体   中英

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:

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?

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.

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 ...that build script goes into your Dockerfile + an *.ini .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM