Add EC2 pattern support.