Skip to content

Add file copier lambda to the local environment#90

Open
liam-lloyd wants to merge 1 commit into
mainfrom
per-10543_add_file_copier_lambda_local_env
Open

Add file copier lambda to the local environment#90
liam-lloyd wants to merge 1 commit into
mainfrom
per-10543_add_file_copier_lambda_local_env

Conversation

@liam-lloyd
Copy link
Copy Markdown
Member

We recently added a lambda to stela to handle the asynchronous parts of record copy. This commit adds it to our local environment.

@liam-lloyd
Copy link
Copy Markdown
Member Author

Testing this is the same as testing PermanentOrg/stela#757, but in your local environment

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the File Copier Lambda to the local development environment so local SNS/SQS event flow can invoke it through SAM Local and the SQS-Lambda bridge.

Changes:

  • Adds LocalStack SQS queue, policy, and SNS subscription for file copy events.
  • Adds FileCopier SAM function, Docker image builder, and start-script env wiring.
  • Extends the bridge example config with a FileCopier queue-to-Lambda mapping.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sqs-lambda-bridge/config.example.json Adds a FileCopier bridge entry for the LocalStack queue.
localstack-init/setup_resources.sh Creates and subscribes the FileCopier queue to local SNS events.
lambda/start-sam-local.sh Checks for the FileCopier image and passes its local env vars to SAM.
lambda/sam_template.yaml Defines the FileCopier SAM function and outputs.
docker-compose.yml Adds the FileCopier Lambda image builder and LocalStack dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lambda/sam_template.yaml
We recently added a lambda to stela to handle the asynchronous parts of
record copy. This commit adds it to our local environment.
@liam-lloyd liam-lloyd force-pushed the per-10543_add_file_copier_lambda_local_env branch from 4eee43e to e6aee3b Compare May 18, 2026 23:22
Copy link
Copy Markdown
Contributor

@slifty slifty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is working -- I was able to run the copier locally

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