After installed Magento using AWS template I am unable to access /magento and /magento/admin.
I do able to see phpInfo page but not the magento admin or store.
Did you get blank screnn or aany error ?
Please check your log file or php and php error log file and paste your exception or error here so that we can find a solution accordingly.
It seems like a mod_rewrite or a directory structure issue.
Google 'how to enable mod_rewrite' and see if that fixes it first.
Are you able to see front end and the admin is showing error like following
The requested URL /magento2index.php/admin/admin/dashboard/index/key/0c81957145a968b697c32a846598dc2e/ was not found on this server.
If front end is visible and you are facing the issue with admin url access, try to visit following official dev docs links which should help you.
You may not have enabled mode rewrite on your server.