At the moment we use Fargate to deploy all things A11yWatch but, not limited to only AWS. This page is for people who are trying to deploy A11yWatch on your own infrastructure.
The quickest way to deploy the suite on the server is to install the
A11yWatch CLI by running
cargo install a11ywatch_cli on the server or in a Dockerfile and run the
a11ywatch start command either in
CMD or as a sidecar on your instance.
After closing the core
a11ywatch repo and navigating to the root directory of the project you can then follow the deployment steps on the CLI section.
Getting started on AWS EC2 linux with the following commands:
# update packages
sudo yum update -y
# install development tools cc
sudo yum groupinstall "Development Tools"
# install docker
sudo yum install docker -y
# start docker
sudo service docker start
# install command to group
sudo usermod -a -G docker ec2-user
# install docker compose
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
# install rust
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
# configure shell to use new rust path
# install a11ywatch
cargo install a11ywatch_cli
# start a11ywatch
# run scan on website this works internally on the container too
a11ywatch scan --url https://a11ywatch.com --save
Make sure to update your security groups to allow inbound traffic on port
3280 for the API instance.