aws-samples / lambda-web-scraper-example Goto Github PK
View Code? Open in Web Editor NEWAn example of a web scraper running on AWS Lambda and Lambda Layers
License: MIT No Attribution
An example of a web scraper running on AWS Lambda and Lambda Layers
License: MIT No Attribution
After deploying the lambda function and trying to run a test, I've got the following error:
"Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home\n"
I was able to fix it by adding the PATH environment on lambda_app_stack.py file and now I am wondering if a Pull Request would be considered.
Following along the README I tried to deploy the template to an AWS-account after using
cdk bootstrap aws://my_id/us_east_2
which ended up in
⏳ Bootstrapping environment aws://my_id/us-east-2...
✅ Environment aws://my_id/us-east-2 bootstrapped (no changes).
but the cdk deploy
ended up like this
❯ cdk deploy
❌ lambdaapp failed: Error: This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region")
at Object.addMetadataAssetsToManifest (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/assets.ts:27:11)
at Object.deployStack (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:211:29)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at CdkToolkit.deploy (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:180:24)
at initCommandLine (/home/mhi/.nvm/versions/node/v14.16.0/lib/node_modules/aws-cdk/bin/cdk.ts:208:9)
This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region")
Is that due to a wrong region that was chosen? The AWS Account ID I took from the My Security Credentials
section in the AWS Management Console.
File "/Users/ngjhn/Library/Python/3.7/lib/python/site-packages/jsii/_kernel/__init__.py", line 282, in create
for iface in getattr(klass, "__jsii_ifaces__", [])
File "/Users/ngjhn/Library/Python/3.7/lib/python/site-packages/jsii/_kernel/providers/process.py", line 344, in create
return self._process.send(request, CreateResponse)
File "/Users/ngjhn/Library/Python/3.7/lib/python/site-packages/jsii/_kernel/providers/process.py", line 326, in send
raise JSIIError(resp.error) from JavaScriptError(resp.stack)
jsii.errors.JSIIError: Stack name must match the regular expression: /^[A-Za-z][A-Za-z0-9-]*$/, got 'lambda_app'
Subprocess exited with error 1
In app.py the name should be lambda-app
not lambda_app
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.