title: How to clone private Git repository in EC2 instance
body: <p>I have a <strong>lambda</strong> function which starts an EC2 instance. I specify in the <code>boto3</code> call the <code>user_data</code> some <code>bash</code> script which install dependencies and start services. </p>
  
  <p>I would like to clone a private Bitbucket repository at that time, so my question is... </p>
  
  <p>What is the best practice in this case?</p>
  
  <p>I am thinking about download some ssh keys from S3 and configure everything with the <code>user_data</code> script but I think is not a good practice. </p>
  
  <p>Suggestions? </p>
  
  <p>Thanks in advance!</p>