You need to introduce an ENI which acts as a secondary network interface that you can attach and detach from the Controller EC2 instance.
You then have to associate the AppDynamics license file to the MAC address of this network interface instead of the MAC address of the underlying EC2 instance.
Attach the new network interface to the Controller EC2 instance.