terraform: don't put the ResourceState in Resource