<jupyter_start><jupyter_text>AWS Boto3 library Installation DevOpsLab Example Prerequisite tasksTo set up this example, you must first have *pip* installed in your system  Connect to target system (optional)<jupyter_code>%run "0.0. Connect to the target system.ipynb"<jupyter_output><empty_output><jupyter_text>Install the *boto3* library Install the *boto3* library using the *pip install boto3*<jupyter_code>%%bash -s "$target_host" "$user" "$password"
if [ $(pip3 list|grep boto3|wc -l) == 1 ]; then
  echo "boto3 library already installed for this user"
else
  echo "Starting installation of boto3 library for this user"
  # UNCOMMENT THIS IS YOU WANT TO INSTALL FOR SUDO USER: echo $3 | sudo -S -H pip3 install boto3
  pip3 install boto3
fi
pip3 show boto3<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.02252816020025031, 'mean_word_length': 5.299212598425197, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '569127', 'license': 'Apache-2.0', 'n_tokens_mistral': 281, 'n_tokens_neox': 269, 'n_words': 98, 'path': 'runbooks/DevSecOps runbooks/1.1.AWS_Boto3_Installation.ipynb', 'repo_name': 'JuanLuisGozaloFdez/DevOpsLab4-Jupyter', 'size': '799'}