You can make `sed` do inline edit:

    sed --in-place -e "s/0.0.0.0/${config.undercloud_heat_ip}/g" /var/lib/heat-cfntools/cfn-boto-cfg

you can drop `/tmp/cfn-boto-cfg` and the subsequent `mv`, then.