To set up DHIS 2 on AWS, start by provisioning an EC2 instance with at least 2 GB RAM and at least 2 CPUs. To stay close to the installation guide, Ubuntu can be used as operating system. The EC2 instance represents a virtual machine which conceptually is equal to other VM providers.
From there, please follow the DHIS 2 installation guide which is based on Ubuntu:
Clearly there are other AWS services like S3, Elasticache for Redis, RDS, Elastic load balancing that might be used with DHIS 2 but that is out of scope for our guide.