Hi,
You can deploy to AWS either by starting an EC2 instance and setting it up manually: https://docs.mendix.com/developerportal/deploy/unix-like/
Or via docker: https://github.com/mendix/docker-mendix-buildpack
You can also look up Mendix AMI on the AWS Marketplace which is already set up for use.
Both m2ee tools and docker buildpack allow you to specify a database endpoint, which in your case would be an RDS instance