-
I was working through the Shopping List tutorial but have hit a problem at the end of Submodule 3 when it comes to run
I ended up tweaking code in
Also tutorial didn't discuss how to handle various test-files generated under Things were mostly working for me in the Shopping List tutorial up to Submodule 4, but then the code changes suggested in part 4 somehow broke things. I can't really understand why. The
But still no joy.
Meanwhile, there is another 1.1GB in the pnpm path at |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi! Thanks for raising this very detailed posted, greatly appreciated! Firstly apologies that you ran into these issues - it seems the The curl command only needs to be run from the root of the monorepo and should end up with the following file: In terms of your |
Beta Was this translation helpful? Give feedback.
-
Not a problem at all! In terms of pointing to other references, there is this which you can reference: https://github.com/awslabs/threat-composer From a PDK/Projen perspective, it just synthesizes any kind of file so pretty much the sky is the limit with what you can do. If you simply want to vend some sample CDK code as an app/lib you can easily do that with Projen/PDK. Calling CDK constructs directly from Projen/PDK on the other hand doesn't make a lot of sense as they have very different concerns. I haven't used deploy-time-build but I would just warn that whenever you plan on building something at deployment time, you run the risk of not being able to have repeatable builds/deployments if reverting or retrying. A good example is global libs changing between different deployment worker images or even worse not using pinned dependencies. This could result in different code being deployed for the same source reference (i.e: prod code is different to your staging env). In my humble opinion, it is much safer to have a discrete build step that generates artifacts (i.e: cloudformation, cloud assembly, etc), test it, then deploy it. To answer your actual question, I have created a docker image which bundles all the required PDK dependencies which you are welcome to try: public.ecr.aws/p9i6h6j0/aws-pdk:latest |
Beta Was this translation helpful? Give feedback.
Hi!
Thanks for raising this very detailed posted, greatly appreciated!
Firstly apologies that you ran into these issues - it seems the
aws sdk
was updated which resulted into the build issues you were facing. I have since raised #744 which updates the docs to remedy this. I have also added samples for the unit tests which show how you can mock the dynamo client and also ensure consistent naming i.e:api.ts -> apis/myapi.ts
. I have also re-run the whole example from start to finish using the updated PR docs and can confirm this all works now :)The curl command only needs to be run from the root of the monorepo and should end up with the following file:
packages/website/public/runtime-conf…