fix ami and sudo

Signed-off-by: rootfs <hchen@redhat.com>