update ec2 configuration