Docker.com use-case CI/DC demo

In the CI/CD demo

it recommends using AWS so using the free tier

https://www.docker.com/use-cases/cicd

would I be able to deploy this demo on a Linux AMI machine

or must I create a Ubuntu 14.04 server.

I believe the Linux ami based on Red Hat Enterprise Linux.