I recently had a requirement to install Cortex XSOAR Community edition in AWS.
First thing I suggest you do is idenfify the requirements of the host server. This is well-documented by Palo Alto Networks here.
For my installation, I provisioned an instance in AWS with the following details: