IaC on AWS with Terraform: Provision a Lambda Function with Layers using Terraform (App: website screen-scraper using Python, Selenium, ChromeDriver)
In this video, we'll provision a Lambda function with Layers using Terraform. And, the Application that we'll be deploying will be a website screen-scraper using Python, Selenium, and ChromeDriver. Please note that, even if the screen-scraper app doesn't interest you, the process of building the Resources in Terraform will be the same regardless of the App you're deploying.
Source Code: github.com/Cum...
Commands:
pip3 install selenium==3.8.0 -t python/lib/python3.7/site-packages
zip -r selenium.zip python/
curl -SL chromedriver.s... > chromedriver.zip
curl -SL github.com/adi... -SL github.com/adi... > headless-chromium.zip
unzip chromedriver.zip && unzip headless-chromium.zip
rm chromedriver.zip headless-chromium.zip
zip -r chromedriver.zip chromedriver headless-chromium
rm chromedriver headless-chromium
zip scrape.zip scrape.py
Негізгі бет IaC on AWS with Terraform: Provision a Lambda Function with Layers using Terraform
Пікірлер: 3