You can package the Selenium WebDriver and other binaries, like ChromeDriver, with your Lambda function to set up AWS Lambda for web scraping with Python and Selenium.  You must also use a headless browser configuration to execute the scraping tasks.