Replace resource with environment.

[#79121670]

Signed-off-by: Shane Blackie <sblackie@pivotallabs.com>