Closed f-skold closed 1 year ago
Try this:
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN git clone --recursive https://github.com/awslabs/aws-crt-php.git && \
cd aws-crt-php && \
phpize && \
./configure && \
make && make test
RUN touch /etc/php/7.4/fpm/conf.d/30-awscrt.ini && echo "extension=/aws-crt-php/modules/awscrt.so" > /etc/php/7.4/fpm/conf.d/30-awscrt.ini
We are still working on the PECL package fix. So, for now, as @italo1983 suggested, build from source is the only way to install awscrt native extension.
We will let you know if we fixed the PECL package issue we currently have. And, once it's fixed, you should be able to install it via pecl install awscrt
You should be able to use pecl install awscrt
now.
Confirm by changing [ ] to [x] below:
Platform/OS/Hardware/Device
Linux (AWS Elastic Beanstalk), custom docker environment based on debian, running on Amazon AWS Linux 2
Describe the question
I did add code that wants to download from one S3 bucket in a (different) region, and upload to my S3 bucket (in a local region). I got the exception saying "AWS Common Runtime for PHP is required to use Signature V4A.". I tried to add the composer package "aws/aws-crt-php", version 1.0.2. But I still get the same exception.
I don't think that the instructions are very clear. Should I add a debian package to get the correct code? Should I build a PECL package? Is the composer package to old (v.1.0.2)?
Logs/output
I got this stack trace: