Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# php-lambda-container-image-demo

This project contains source code and supporting files for a serverless application that you can deploy with the AWS Serverless Application Model (AWS SAM) command line interface (CLI). It contains a custom runtime PHP Lambda function packaged as a docker contaier image. It deploys an Amazon HTTPs API endpoint to invoke the Lambda function.
This project contains source code and supporting files for a serverless application that you can deploy with the AWS Serverless Application Model (AWS SAM) command line interface (CLI). It contains a custom runtime PHP Lambda function packaged as a docker container image. It deploys an Amazon HTTPs API endpoint to invoke the Lambda function.

The following files and folders are included:

Expand Down Expand Up @@ -60,10 +60,10 @@ This [Dockerfile](./0.7-PHP-Lambda-functions-with-Docker-container-images/Docker

## Deploy the sample application

1. Use the AWS CLI to create a new ECR repository to store the container image for the phpLambdaFuncton.
1. Use the AWS CLI to create a new ECR repository to store the container image for the phpLambdaFunction.

```bash
aws ecr create-repository --repository-name php-lambda-functon \
aws ecr create-repository --repository-name php-lambda-function \
--image-tag-mutability IMMUTABLE --image-scanning-configuration scanOnPush=true
```
![create-repository-output](../repository-resources/repositryUrl.png)
Expand Down