IaC on AWS with Terraform: Provision a Lambda Function with Layers using Terraform

Опубликовано: 01 Октябрь 2024
на канале: Cumulus Cycles
2,265
41

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: https://github.com/CumulusCycles/IaC_...

Commands:
pip3 install selenium==3.8.0 -t python/lib/python3.7/site-packages
zip -r selenium.zip python/

curl -SL https://chromedriver.storage.googleap... > chromedriver.zip

curl -SL https://github.com/adieuadieu/serverl... -SL https://github.com/adieuadieu/serverl... > 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