Posts

Showing posts from June, 2024

Python script (2024): Learn how to manage secure storage in AWS using S3 lifecycle configurations.

Image
  Quick overview of how to set up and run a .py program within Visual Studio Code using a virtual environment. This was made in Visual Studio Code within a virtual environment. The most important commands in working with your virtual environment are: 1. Create your virtual environment > py -m venv env 2. Activate your virtual environment > env\Scripts\activate ** It's also a good idea to update pip using the following command: > py -m pip install --upgrade pip 3. Go to View > select Command Palette > Select Python Interpreter > (env:venv) 4. Ensure you are using the PowerShell terminal or you may do a split terminal if you need to run a few Linux commands (WSL) as part of the project. A split terminal is not necessary for this project. 5. Run your application > py main.py ===================================================== Screenshot of output ===================================================== Next, import the correct libraries  boto3 is the Amazon Web Se