-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bref-extra:oci8-php-80
doesn't work
#323
Comments
It all looks correct. You should probably also add oci8 layer in your artisan function. What version of bref/extra-php-extensions are you running? Looking at your second screenshot , the "compatible runtimes" seams weird. Btw, the layer is verified with: https://github.com/brefphp/extra-php-extensions/blob/master/layers/oci8/test.php |
FYI: This layer was just updated by @Nemo64 |
I didn't touch the |
Oh, Im confused. Sorry for the ping |
I have the same issue, did you solve it @benzoh ? |
@renanwilliam yes. I solved it by defining the layers myself. Please have a look.
functions:
app:
handler: public/index.php
layers:
- ${bref:layer.php-80-fpm}
- arn:aws:lambda:ap-northeast-1:XXXXXXXXXXXX:layer:lambda-oci8-layer:3
events:
- http:
path: api/hoge
method: GET |
Strange, your Dockerfile looks like the same in the official repo. Is there something relevant different that I was not seeing? |
I think the solution is to publish with the aws lambda publish-layer-version \
--layer-name lambda-oci8-layer \
--description "My oci8 layer" \
--license-info "MIT" \
--zip-file fileb://dest/oci8.zip \
--compatible-runtimes provided.al2 \
--compatible-architectures x86_64 |
I am getting this error : 'user' directive is ignored when FPM is not running as root. |
Hello. Let me ask you a question.
I think I've defined the extension correctly, but it doesn't work.
↓ serverless.yml
Do I need to set anything else?
The text was updated successfully, but these errors were encountered: