from distutils.util import strtobool
bool(strtobool('true'))
FOO = bool(strtobool(os.environ['FOO']))
-
https://docs.python.org/3/distutils/apiref.html#distutils.util.strtoboolGérer des resources aws avec un controller kube fourni par aws
-
https://aws.amazon.com/blogs/containers/aws-controllers-for-kubernetes-ack/retcode = subprocess.call(['echo', 'foo'], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
-
https://stackoverflow.com/questions/11269575/how-to-hide-output-of-subprocess-in-python-2-7