Fixes #4500 change ec2 module params to type=bool

Revert 4833c2fdf06352835742cacac12043a1e5f0904d