Posts

Python code base: Simple S3 project - Create an S3 bucket and upload an image file.

Image
  This simple tutorial is to help learn: - Initialise a Git repository in the current working directory (# git init) and set up basic global configurations.  - Add and stage specific files or all files for commit in the local Git respository. - Push local changes to remote Github repository to sync with local changes. - Create an S3 bucket in a specified AWS region. - Upload an image file to the newly created S3 bucket. - Verify successful upload by manually checking the S3 bucket contents and/or handling any errors. - Ask for user input when setting up global configurations for AWS credentials to avoid hard-coding credentials into the project. Code Base Use Git commands to push the main.py file to the remote Github repository: # Initialise the repository - git init  # Set up global configurations: - git config --global user.name "<user_name<" - git config --global user.email "<email>" # Create a connection between a local git repository and the main rem...

How AWS Protects Your Data Privacy and Security- 2025 January

Image
In a world where data is the most valuable asset, protecting privacy is crucial.  With the rapid rise of cloud computing, securing sensitive data has never been more important. Amazon Web Services (AWS) offers a privacy-first approach to cloud solutions, making sure your data stays protected while giving you full control.  Here’s how AWS ensures your digital privacy and builds its infrastructure with security in mind.    - AWS's Commitment to Your Privacy:  AWS is built on the belief that your data belongs to you . From their infrastructure to their services, AWS prioritizes privacy by offering tools and practices to help their customers keep control of the customer's side of the "shared responsibilities."  - Data Ownership: You own your data. AWS does not access or use your information without your permission. You have full control over where and how your data is stored.  - Compliance with Global Standards: AWS meets strict regulations like GDPR, HI...

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 W...

Bash (PowerShell) script - Create an EC2 on AWS and list running EC2 instances on AWS (2024)

Image
Script (DESKTOP users only) To view script > left click > right click - open image in new tab > the cursor turns into a plus sign > left click > will offer zoomed in mode. The following code base was created using PowerShell. -------------------------------------------------------------------------------------- OUTPUT Reference the following information regarding 'client token' as this 'client token' is shown in the output when creating an EC2: Amazon VPC now supports idempotency for route table and network ACL creation 'client token' is shown when creating an EC2 on AWS: ---------------------------------------------------------------------------------- Screenshots of program: Code base:

Developer's Arsenal: How HashiCorp unites cloud securite and upholds the AWS Well-Architected Framework when implementing Policy as Code using Sentinel One.

Image
This summary highlights the compelling impact of Sentinel One on Infrastructure as Code (IaC) by: automating policies ensuring seamless adherence to infrastructure requirements (aka AWS Well-Architected Framework) significantly slashing response times for developers throughout the code submission process This blog post references the following video on Sentinel One by HashiCorp.: Video: Introduction to Sentinel, Policy as Code Framework (hashicorp.com) Armon Dadgar's discussion on policy as code, with a focus on HashiCorp's Sentinel, offers valuable insights for cloud architects, especially in the context of adhering to industry best practices like the AWS Well-Architected Framework. Sentinel is designed to be a high-level language for non-programming experts to author the policies. Dadgar begins by emphasising the benefits of infrastructure as code, aligning the principles advocated by the AWS Well-Architected Framework. By integrating the Terraform Enterprise, Sentinel One en...

C++ code base - Cloud provider services menu using if/else, switch/case. 2023.

Image
This program was created using Visual Studio for the IDE. Screenshot I Screenshot II Screenshot III CODE BASE  NOTE:   (Desktop users): To view the sections below clearly > right click > Open image in new tab. > Should give a crosshair "+" symbol > Click on that and it will zoom in on the image. OR Left click on the image. > Will open image on page. > use CTRL + scroll up or down (on mouse) to zoom in. I. II. III. IV.  V.   VI. VII. VIII. IX. X.  

PYTHON script 2023: Basic system administration script

Image
NOTE:  (DESKTOP users only) To view script > left click > right click - open image in new tab > the cursor turns into a plus sign > left click > will offer zoomed in mode. -------------------------------------------------------------------------------------- OUTPUT II.  III. IV.   ------------------------------------------------------------------------------------- Code base I. main.py II. banners.py NOTE:  (DESKTOP users only) To view script > left click > right click - open image in new tab > the cursor turns into a plus sign > left click > will offer zoomed in mode. main.py I main.py II main.py III main.py IV main.py V ------------------------------------------------------------------------------------------- banners.py