Added support for setting a custom TTL on the container
Make sure the TTL is also set on the container if it is already public