Giter Site home page Giter Site logo

codew47 / xilution-selenium-grid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xilution/xilution-selenium-grid

0.0 0.0 0.0 31 KB

A Selenium Grid that Runs in AWS ECS Fargate.

Home Page: https://www.xilution.com

License: Other

Makefile 100.00%

xilution-selenium-grid's Introduction

xilution-selenium-grid

  • Stand up a Selenium Grid in AWS ECS Fargate using Selenium Grid Host and Node Docker images.
  • A configurable CloudFormation template is provide along with a Makefile to simplify the provisioning and deprovisioning process.
  • Keeps your secrets safe with KMS.
  • Grid accessible through: http://selenium-grid.your-domain.com:4444
  • Simply follow the instructions below and you'll have a functioning Selenium Grid stood up in no time.

Inspiration

Assumptions

  • These instructions were created for a Mac environment, but could easily be ported to Linux or Windows.

Set Up

  1. Set up an AWS Account.
  2. Install the AWS CLI.
  3. Use AWS IAM to create an administrator identity. It's generally bad practice to use your AWS account's root user.
  4. Use AWS Route53 to create a Hosted Zone with a custom domain name. This step is optional.
  5. Use AWS Key Management System to create a dev ops key for encrypting secrets.
  6. Add export AWS_DEV_OPS_KEY_TOKEN=your-aws-dev-ops-kms-key-token to your .bash_profile. Run source ~/.bash_profile to add the new environment variable to your current terminal session. This only needs to be done once.
  7. Create a file named secrets.decrypted.json in ./aws/cloud-formation/ with the following contents. Replace your-domain.com. with your custom domain name. If you do not set up a custom domain name, remove the RecordSet resource from the CloudFormation template.
    [
      {
    	"ParameterKey": "DomainName",
    	"ParameterValue": "your-domain.com."
      }
    ]
  8. Run make secrets-devops-encrypt to encrypt the parameters with your key.

Operating your Selenium Grid

  1. Run make provision to stand up your Selenium Grid. Note that it could take up to 10 minutes to stand up the stack.
  2. Run make deprovision to tear down your Selenium Grid.

Warning! Only run the grid while needed. When not in use, I highly recommend that you run the deprovision step. Why pay for your new Selenium Grid when you don't need it. Isn't elasticity great!?!

Contributions

Pull requests are welcome. If you see an opportunity to improve this repo, please share.

Pay it Forward

If you find the contents of this repo useful, please share your experiences with the boarder community. Thanks!

Wish List

See repo Issues.

xilution-selenium-grid's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.