your licence is not tied to a specific server : as long as you only use the license on one server at a time, you can move it to another server.
To copy your data from AWS to your own server, you'll have to copy the application folder and its home. You will also need to move the database content.