title: Sagemaker lifecycle config: could not find conda environment conda_python3 | works fine in terminal
body: <p>I have prototyped some code using conda_python3 environment in SageMaker notebook instance. When I open terminal, activate environment and run code it works well but when I try to automate the process by using lifecycle configuration, system is unable to identify the environment. I get the following message on cloud watch</p>
  <pre><code>2020-07-16T11:25:37.576+05:30
  Could not find conda environment: conda_python3
  
  2020-07-16T11:25:37.576+05:30
  You can list all discoverable environments with `conda info --envs`.
  </code></pre>
  <p>My life cycle config code:</p>
  <pre><code>#!bin/bash
  
  set -e
  
  ENVIRONMENT=conda_python3
  
  source /home/ec2-user/anaconda3/bin/activate &quot;$ENVIRONMENT&quot;
  
  python /home/ec2-user/SageMaker/scrub_testing.py
  
  source /home/ec2-user/anaconda3/bin/deactivate
  </code></pre>
  <p>What am I doing wrong?</p>