modify AWSEC2 class.