Posts

SumoMetrics: Viewing Linux System Activity through log analytics

Image
  I. Created an EC2 using a Terraform script. main.tf  provider "aws" {   region = "us-east-1" } resource "aws_instance" "sumo_ec2" {   ami           = "ami-<#>"   instance_type = "t2.micro"   key_name         = "<#>"   security_groups = [ "<#>" ]   user_data = << - EOF                 #!/bin/bash                 yum update -y                 yum install -y curl unzip                 wget "https://collectors.sumologic.com/rest/ download/linux/64" -O SumoCollector.sh && chmod +x SumoCollector.sh && sudo ./SumoCollector.sh -q -Vsumo.token_and_url=<#>                 EOF   tags = {   ...

C++ simple code base to understand iterative and recursive algorithms. What makes an iterative function faster?

Image
  IDE - Visual Studio This project provides exposure to the Fibonacci Sequence , which is a sequence of numbers where each number is the sum of the two numbers before it.  This project provides two different approaches to calculating the Fibonacci Sequence: - A simple loop ( iterative method ). - A function which calls itself ( recursive method ) in order to solve bits of  bigger problem and with smaller numbers, the recursive method works quite well. However, as the sequence continues to a bigger number, the repeated functions calls become burdensome and causes the function to lag. **************************************************************************** Here is a screenshot of what the output should look like: **************************************************************************** Here is the code base: Sources https://dev.to/khalilsaboor/fibonacci-recursion-vs-iteration--474l

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