Hi,
Let's assume a scenario:
You already have an existing Joget running on an EC2, and let's set the EC2 name as oldEC2. Inside this oldEC2 has all Joget data and database.
Now to create to a new EC2, assuming the name is newEC2, you can launch it from the AWS Marketplace, and the new Joget instance will have a license key, let's label it as "newEC2-JogetLicense" in the wf_setup table, and this newEC2-JogetLicense is tied to the newEC2 Instance ID.
And to migrate the Joget data from oldEC2 to newEC2, you need to restore the data, by referring to the KB page I shared earlier. However when you import the database, the process will overwrite newEC2-JogetLicense and causing the Joget license invalid.
Therefore before the database import, keep or export out the newEC2-JogetLicense record in the newEC2 instance.
After importing the database from oldEC2 instance into the newEC2 instance, run another database import, which contains the newEC2-JogetLicense record only, so that the newEC2-JogetLicense is matched with newEC2 instance.
Hope this addressed your concerns. Thanks.