fixed ec2 configuration