This repository was archived by the owner on Apr 29, 2024. It is now read-only.
generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 139
Welcome to php-examples-for-aws-lambda Discussions! #18
Unanswered
benjasl-stripe
asked this question in
General
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
- Ask questions you’re wondering about.
- Share ideas.
- Engage with other community members.
- Welcome others and are open-minded. Remember that this is a community we
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
Hello,
Thanks for making this tutorial.
I have zipped the php and bootstrap file in a cloud9 environment. I am on "Creating Dependencies".
- The text says "In an Amazon Linux environment compatible with the Lambda execution environment", can you clarify on this?
- How will I be sending the package out of cloud9 and make useful for lambda? Is that what the "Publish to Lambda layers" commands do? Do I need to edit the commands at all?
Beta Was this translation helpful? Give feedback.
All reactions
2 replies
-
- Essentially it means launching and compiling PHP in an EC2 instance that uses the same Amazon Machine Image (AMI) from the underlying Lambda Execution Environment. If you are using a cloud 9 environment then that should be sufficient, this blog post has more info on the particulars : https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/
- Once you have zipped the runtime up (in the directory structure shown) you will use the AWS CLI to publish this ZIP file to a Lambda Layer. you will then configure your PHP Lambda function to use this Layer. You shouldn't need to change the commands.
Beta Was this translation helpful? Give feedback.
All reactions
-
This helps immensely. Thank you so much
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1 -
🚀 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment