Why don't you simply assign the volume type and the raw/local params directly to the resource?