## Installation Notes for undetected-chromedriver AWS Lambda:
### Installing Serverless package for the deployment
```bash=
sudo npm install -g serverless
```
### Obtaining Credentials:
- Go to AWS IAM Management Console > Users

- Click on the user, for example, rafay

- Go to Security Credentials and Create Access Key

- Once you generate the Access key, you will have a key and secret, place them in the below placeholders for <KEY> and <SECRET>.
```bash=
serverless config credentials --provider aws --key <KEY> --secret <SECRET>
```
- Run this command, your docker container will be built and now you will be able to see the result obtained from
- example.com page on your terminal.
```bash=
sls create --template-url "https://github.com/RafayGhafoor/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
sls deploy
sls invoke --function demo
```
