---
# System prepended metadata

title: Untitled

---

## 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

![](https://i.imgur.com/Xd2Fk0o.png)

- Click on the user, for example, rafay

![](https://i.imgur.com/gPKqKqD.png)

- Go to Security Credentials and Create Access Key

![](https://i.imgur.com/kRVhEaG.png)

- 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
```

![](https://i.imgur.com/iCHXejo.png)

