From eb3654e6992858c9cfc338b8b6b17427426189ab Mon Sep 17 00:00:00 2001 From: Marko Malenic Date: Thu, 14 Mar 2024 12:52:07 +1100 Subject: [PATCH] docs(filemanager): add note about permission issues --- lib/workload/stateless/filemanager/.gitignore | 2 +- lib/workload/stateless/filemanager/deploy/README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/workload/stateless/filemanager/.gitignore b/lib/workload/stateless/filemanager/.gitignore index 56d0a8cc8..7709b0d30 100644 --- a/lib/workload/stateless/filemanager/.gitignore +++ b/lib/workload/stateless/filemanager/.gitignore @@ -2,4 +2,4 @@ target/ *.swp /volume/ .build -target-cdk-docker-bundling/ \ No newline at end of file +target-cdk-docker-bundling/ diff --git a/lib/workload/stateless/filemanager/deploy/README.md b/lib/workload/stateless/filemanager/deploy/README.md index caea31a55..cab0e3fa1 100644 --- a/lib/workload/stateless/filemanager/deploy/README.md +++ b/lib/workload/stateless/filemanager/deploy/README.md @@ -21,3 +21,11 @@ The filemanager expects a dedicated database within the shared database cluster, Initially, the filemanager-migrate-lambda function is deployed to perform database table migrations using the cdk_resource_invoke.ts construct. Then, the other Lambda functions are deployed normally within the filemanager construct. + +### Building + +Note, the `RustFunction` compiles code using `cargo-lambda` running inside a Docker container, and produces a Lambda +function which runs natively on AWS (i.e. not a dockerized Lambda function). This makes it simpler for consumers of +the Filemanager CDK to build the project. There is a small downside in that the compiled code is stored under a +`target-cdk-docker-bundling` directory which is owned by Docker, so there may be some permission issues if trying to +clean this directory. \ No newline at end of file