I am MD. Atiqur Rahman graduated from BUET and is an AWS-certified solutions architect. I have successfully achieved 6 certifications from AWS including Cloud Practitioner, Solutions Architect, SysOps Administrator, and Developer Associate. I have more than 8 years of working experience as a DevOps engineer designing complex SAAS applications.
Its even easier to setup the latest version of MongoDB Server now straight from the AWS marketplace, there is a MongoDB image available: https://aws.amazon.com/marketplace/pp/prodview-t2fk7vzqwuf2i
It fully installs on Ubuntu 20.04, Post configuration steps are on: https://cloudinfrastructureservices.co.uk/how-to-setup-mongodb-community-server-on-azure-aws/