About your second question: I am not sure I understand what is the goal here? Do you want to automatically roll out (install) the RPA software on EC2 Linux AMI? If so, this is not needed. You could enter the license key once and then store it with the AMI snapshot, or?