This project provides an AWS CloudFormation template along with start and clean-up shell scripts for managing AWS Stacks. It focuses on setting up a Selenium Hub and Nodes on AWS Spot Fleet instances. The setup utilizes official Chrome browser Docker images from Selenium Docker Hub and supports parallel resource execution on separate AWS Fleet instances.
Before starting, ensure curl, jq, and aws-cli are installed as they are essential for executing the provided shell scripts.
First, configure your AWS account with aws-cli. This is necessary for running AWS modules.
-
Using Parameters: Modify the
params.jsonfile with your desired parameters for AWS Stack creation. -
Fast Launch URL: Use the following URL for quick stack creation in the US East (N. Virginia) region.
Region Name Region Code Launch Link US East (N. Virginia) us-east-1 -
Shell Script: Alternatively, execute the adapted shell script to create the stack and retrieve the Selenium Grid URL upon completion.
sh create_stack.sh
Avarage time for creation ~ 5-6 min
To delete the AWS Stack and all associated resources, use the following command:
sh clean_up_stack.sh