Selenium script execution in AWS EC2 instance using selenium grid and docker containers

 In this use case, we will see how to execute the selenium script execution inside AWS EC2 instances using Selenium grid and docker image.

 EC2 instance creation with preinstalled docker amazon Linux AMI

 Go to AWS Management console, In AMI search for an ‘docker’ and select one of the Linux AMI where docker already been pre-installed as below.

 Create a new key-pair in order to connect with EC2 instances. If you are using putty please make you are selecting the .ppk file

 In Network settings, make sure you add the inbound security group with port 4444 and 7900 as below

Website