Skip to content

New serverless pattern - lambda-web-dynamodb-api/nodejs/terraform - #3574

Open
mattenarle10 wants to merge 1 commit into
aws-samples:mainfrom
mattenarle10:mattenarle10-feature-lambda-web-dynamodb-api-terraform
Open

mattenarle10 wants to merge 1 commit into
aws-samples:mainfrom
mattenarle10:mattenarle10-feature-lambda-web-dynamodb-api-terraform

Conversation

@mattenarle10

Copy link
Copy Markdown

Issue #, if available: #3573

Description of changes:

Adds a Terraform variant of the existing Express and DynamoDB pattern. It packages the SAM sibling’s Express app with its production dependencies, pins that package to a versioned S3 object, and deploys a regional Lambda Web Function endpoint with IamAuth. The execution role scopes DynamoDB access to the sample table.

Tested in ap-northeast-1 with Terraform 1.16.4 and AWS provider 6.72.0. The unsigned request returned 403. Signed requests passed create, read, update, cursor pagination, and the expected 400, 404, and 409 cases. Terraform destroyed all 13 resources and AWS inventory confirmed cleanup.

Terraform formatting and validation, the mocked infrastructure check, and the upstream folder, schema, and IAM checks passed locally.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This branch has not been deployed

No deployments
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.

3 participants