Add Lambda PHP/Bref CDK sample by joe4dev · Pull Request #207 · localstack-samples/localstack-pro-samples · GitHub
Skip to content

Add Lambda PHP/Bref CDK sample#207

Merged
HarshCasper merged 8 commits into
masterfrom
lambda-php-bref-cdk-app
Feb 27, 2023
Merged

Add Lambda PHP/Bref CDK sample#207
HarshCasper merged 8 commits into
masterfrom
lambda-php-bref-cdk-app

Conversation

@joe4dev

@joe4dev joe4dev commented Feb 7, 2023

Copy link
Copy Markdown
Contributor

Simple PHP/Bref serverless application using a shared Lambda layer deployable with AWS CDK to LocalStack.

Preview

https://github.com/localstack/localstack-pro-samples/tree/lambda-php-bref-cdk-app/lambda-php-bref-cdk-app

Demonstrates

Related issues

Open Tasks

  • Fix build for serverless-lambda-layers after bumping Node version to v14
  • Add summary to the top-level readme
  • Fix build for qldb-ledger-queries after breaking dependency update

@joe4dev joe4dev requested a review from HarshCasper February 7, 2023 16:48
@joe4dev

joe4dev commented Feb 7, 2023

Copy link
Copy Markdown
Contributor Author

Fixes for the mentioned issues are in the works ...
Also remove unsupported `LAMBDA_DOCKER_FLAGS` by the Docker SDK client
The AWS CDK requires at least Node v14 aws/aws-cdk@d0a27c1
Trying to bump conservatively to Node v14: https://github.com/localstack/localstack-pro-samples/blob/master/.github/workflows/makefile.yml#L21

Even for v14, maintenance EOL is coming soon: https://github.com/nodejs/Release
Requires more follow up work before migrating to v3:

```
Serverless: Deprecation warnings:

Variables resolver reports following resolution errors:
  - Cannot resolve variable at "resources.Resources.ApiGatewayRestApi.Properties.Name": Value not found at "self" source,
  - Cannot resolve variable at "resources.Outputs.RestApiId.Export.Name": Value not found at "self" source
From a next major this will be communicated with a thrown error.
Set "variablesResolutionMode: 20210326" in your service config, to adapt to new behavior now
More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER

Resolution of lambda version hashes was improved with better algorithm, which will be used in next major release.
Switch to it now by setting "provider.lambdaHashingVersion" to "20201221".
While it is highly encouraged to upgrade to new algorithm, you can still use the old approach by setting "provider.lambdaHashingVersion" to "20200924".
More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2
```
@HarshCasper HarshCasper merged commit b5f1db8 into master Feb 27, 2023
@HarshCasper HarshCasper deleted the lambda-php-bref-cdk-app branch February 27, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants