shi-archive / crpm-lambda-container-puppeteer

Example of how to deploy a Lambda function as a container containing Puppeteer, with CRPM
Other
31 stars 11 forks source link

This doesn't work. #2

Open Dirk94 opened 2 years ago

Dirk94 commented 2 years ago

Issue 1:

cdk deploy puppeteer

Gives the error --app is required either in command-line, in cdk.json or in ~/.cdk.json

Solution 1: Create a cdk.json file with:

{
    "app": "npx ts-node bin/app.ts"
}

Issue 2:

cdk deploy puppeteer

Gives the error ENOENT: no such file or directory, open 'cdk.out/manifest.json'


Conclusion: doing simple things on AWS is impossible due to missing documenation. Outdated documentation. Documentation that simply states the wrong things.

boronine commented 2 years ago

@Dirk94 I also ran into some errors and ended up making my own simplified version, you may find it useful: https://github.com/boronine/aws-cdk-puppeteer-screenshot