CreateVolume () { COMPREPLY=($(compgen -W " --AvailabilityZone ... According with the documentation CreateVolume need SubregionName and not AvailabilityZone Regards