Update ephemeral resource to use library in place of shell script