<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Asim Ali on Medium]]></title>
        <description><![CDATA[Stories by Asim Ali on Medium]]></description>
        <link>https://medium.com/@asimaliofficial0?source=rss-dc3d299c1c7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rkrAbpebgf6B46GI</url>
            <title>Stories by Asim Ali on Medium</title>
            <link>https://medium.com/@asimaliofficial0?source=rss-dc3d299c1c7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 14:05:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asimaliofficial0/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting up a Private, Self-hosted Storage Cloud on Amazon EC2]]></title>
            <link>https://medium.com/@asimaliofficial0/setting-up-a-private-self-hosted-storage-cloud-on-amazon-ec2-9967ac1519f1?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9967ac1519f1</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 22:03:54 GMT</pubDate>
            <atom:updated>2023-04-19T22:04:49.711Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, cloud storage and collaboration are essential for businesses and individuals alike. However, not everyone wants to rely on a third-party service for their storage needs. Luckily, there’s a way to set up your own private cloud using Nextcloud and MySQL on an AWS EC2 instance with Docker. In this tutorial, we’ll guide you through the process of setting up your own private cloud in just a few easy steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6w6SISNLzBr6pSq2.png" /><figcaption>Nextcloud</figcaption></figure><p>There is very simple way to host the nextcloud on AWS EC2 using docker-compose. Docker has made life very easier in terms of using any application anywhere. I used docker and docker-compose to host the Nextcloud with MySQL on AWS EC2.</p><p><strong>Pre-requisites:</strong></p><ol><li>A running EC2 instance (with Ubuntu AMI installed on it and security groups allowing all kind of traffic on port 22 for SSH, port 80 and 443 for HTTP/HTTPS access from anywhere) on AWS.</li><li>PuTTY Software.</li><li>Nextcloud app installed on mobile phone.</li></ol><p><strong>Steps:</strong></p><ol><li>Make a connection using PuTTY with public IPv4 of EC2 instance and Public Key file downloaded from keys of EC2.</li></ol><p><strong>2. </strong>After successfully accessing the ubuntu, run following commands to update the existing packages and installing docker and docker-compose.</p><pre>sudo apt-get update<br>sudo apt-get install -y docker.io docker-compose</pre><p><strong>3.</strong> Make a new folder with any name e.g., nextcloud and move to that directory and create a new file (docker-compose.yml).</p><pre>mkdir nextcloud<br>cd nextcloud<br>nano docker-compose.yml</pre><p><strong>4.</strong> Now, you will have a text editor opened and paste the following flow in that file.</p><pre>version: &#39;3&#39;<br><br>services:<br>  db:<br>    image: mysql:5.7<br>    command: --default-authentication-plugin=mysql_native_password<br>    restart: always<br>    volumes:<br>      - db:/var/lib/mysql<br>    environment:<br>      MYSQL_ROOT_PASSWORD: my-secret-pw<br>      MYSQL_DATABASE: nextcloud<br>      MYSQL_USER: nextcloud<br>      MYSQL_PASSWORD: my-secret-pw<br><br>  app:<br>    image: nextcloud:latest<br>    restart: always<br>    ports:<br>      - 80:80<br>      - 443:443<br>    depends_on:<br>      - db<br>    environment:<br>      MYSQL_HOST: db<br>      MYSQL_DATABASE: nextcloud<br>      MYSQL_USER: nextcloud<br>      MYSQL_PASSWORD: my-secret-pw<br><br>volumes:<br>  db:</pre><p><strong>Explanation for this file:</strong></p><p>This is a Docker Compose file, which defines a multi-container application that includes two services: a database (db) service and an application (app) service. <strong>The db service</strong> uses the <strong>MySQL 5.7 image</strong> and specifies a command to use the mysql_native_password authentication plugin. It also sets environment variables for the MySQL root password, the name of the Nextcloud database, and a username and password for the Nextcloud user. The volumes section creates a named volume called “db” which will store the database data. <strong>The app service</strong> uses the <strong>latest Nextcloud image</strong> and maps ports 80 and 443 to the host machine, allowing access to the web interface. It depends on the db service to be started first. The environment variables for the app service specify the hostname of the database service, the name of the Nextcloud database, and the same username and password as specified in the db service.</p><p>When the application is started, Docker will create two containers, one for the database and one for Nextcloud, and link them together. The named volume &quot;db&quot; will be used to store the database data, allowing it to persist even if the container is destroyed and recreated.</p><p><strong>5. </strong>Run the docker-compose file using following command to serve the application on public ip.</p><pre>docker-compose up -d</pre><p><strong>6. </strong>Paste the public IPv4 on browser and you will see a nextcloud signup page like this. Create an admin account with username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJUOLh0RQZGjP8jAg3rSVw.png" /></figure><p><strong>7.</strong> After creating the account, you will see a dashboard where you can install recommended apps (not needed necessarily).</p><p><strong>8.</strong> Now, get your mobile phone and open the nextcloud app on mobile and when you try to login, it will ask for public Ip of server, which is public IPv4 of EC2 instance. Enter the Ip and it will test the connection and will ask for user details which you already created in step6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*-k3JSx_nf-PmohMNwnrKwg.jpeg" /></figure><p>You can upload any document from mobile and check it on web to verify that data storage operations working. You can create new user from you account on top right corner of web.</p><p><strong>Conclusion:<br></strong>It is very easy and convenient to host the nextcloud using docker and docker-compose and using EC2 is already a top-level user experience. You can host more application in same way using EC2 and docker-compose.</p><p>For any query related to this, email me at asimaliofficial0@gmail.com with reference to this blog. Also, provide reference to this blog if you use anywhere in your academic work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9967ac1519f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLflow: Simplifying Machine Learning Workflow]]></title>
            <link>https://medium.com/@asimaliofficial0/mlflow-simplifying-machine-learning-workflow-65daace656?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/65daace656</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Thu, 06 Apr 2023 06:01:48 GMT</pubDate>
            <atom:updated>2023-04-06T06:01:48.527Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine learning (ML) has become an essential part of data-driven decision-making across a wide range of industries. However, the process of developing ML models is complex and often requires significant effort and collaboration among data scientists, engineers, and other stakeholders. MLflow is an open-source platform that simplifies and streamlines the ML workflow, making it easier to develop, track, and deploy ML models.</p><p>In this blog, we will walk through an example of using MLflow for hyperparameter tuning with a RandomForestRegressor model on the diabetes dataset from Scikit-learn. The goal of this example is to demonstrate the basic steps involved in using MLflow, including creating a new experiment, setting up tracking, logging model parameters and metrics, and deploying the final model.</p><ol><li><strong>Importing Necessary Libraries</strong></li></ol><p>First, we need to import the necessary libraries for the MLflow example. These include:</p><ul><li>mlflow: The primary MLflow library for tracking experiments, logging parameters, metrics, and artifacts, and managing models.</li><li>mlflow.sklearn: A library for using MLflow with Scikit-learn models.</li><li>train_test_split from sklearn.model_selection: A function for splitting the dataset into training and testing sets.</li><li>load_diabetes from sklearn.datasets: A function for loading the diabetes dataset.</li><li>RandomForestRegressor from sklearn.ensemble: A model for performing regression tasks.</li><li>mean_squared_error from sklearn.metrics: A metric for evaluating the performance of regression models.</li></ul><p>2. Loading and Splitting the Diabetes Dataset</p><p>Next, we load the diabetes dataset from Scikit-learn using the load_diabetes function and split it into training and testing sets using the train_test_split function. This step is necessary to evaluate the performance of the model on unseen data.</p><p>3. Setting the MLflow Tracking URI</p><p>We set the MLflow tracking URI to point to our local instance of the MLflow server using the following URI: “<a href="http://localhost:5000/">http://localhost:5000</a>&quot;. This step enables tracking of all the experiments and runs using the MLflow server.</p><p>4. Setting the Experiment Name</p><p>We set the experiment name to “rf_diabetes_hyperparameter_search”. This step helps in grouping related experiments and runs together for easy tracking and management.</p><p>5. Creating a New MLflow Run</p><p>We create a new MLflow run with the name “rf_diabetes_example” and a description stored in a variable named desc with the value “Random Forest Regressor for diabetes dataset”. This step is essential for tracking the progress of the experiment and logging the model parameters, metrics, and artifacts.</p><p>6. Enabling Auto-Logging</p><p>We enable auto-logging for the RandomForestRegressor model using mlflow.sklearn.autolog(). This step automatically logs the model parameters, metrics, and artifacts to the MLflow server during the training and evaluation process, reducing the manual effort required to track and manage the ML workflow.</p><p>7. Creating Nested Runs for Hyperparameter Search</p><p>We create nested runs for hyperparameter search inside the MLflow run. For each combination of hyperparameters, we create a nested run and perform the following tasks:</p><ul><li>Train a RandomForestRegressor with the given combination of hyperparameters.</li><li>Fit the RandomForestRegressor using the X_train and y_train datasets.</li><li>Evaluate the performance of the trained RandomForestRegressor on the test dataset (X_test and y_test) and log the evaluation metric (e.g., mean squared error) using MLflow tracking.</li></ul><p>The model’s hyperparameters, metrics, and trained model will be logged automatically using MLflow auto-logging.</p><p>8. Register the trained model</p><p>Register the trained RandomForestRegressor model with the best evaluation metric to the MLflow Model Registry. First, find the model’s run ID from the MLflow tracking UI or API. Then, use the mlflow.register_model function to register the model with a specified name (e.g., “diabetes_rf_model”).</p><p>After evaluating the performance of each hyperparameter combination, you can register the best-performing model to the MLflow Model Registry. This allows you to easily track, share, and deploy your trained models. To do this, you need to find the run ID of the best-performing model in the MLflow tracking UI or via the API. Once you have the run ID, you can use the mlflow.register_model function to register the model with a specified name.</p><p>9. Create an MLflow Project</p><p>Create an MLflow Project by creating a new directory with a name “rf_diabetes_project” and placing your Python script from steps 1–8 inside this directory. Also, create an MLproject file and a Conda environment file to specify your project’s dependencies.</p><p>An MLflow Project is a standard format for packaging data science code in a way that can be easily run, reproduced, and shared. To create an MLflow Project, you need to create a new directory with a name of your choice (e.g., “rf_diabetes_project”) and place your Python script from steps 1–8 inside this directory. You should also create an MLproject file that describes your project’s entry points and parameters, as well as a Conda environment file that specifies your project’s dependencies.</p><p>10. Run your MLflow Project</p><p>Run your MLflow Project using the mlflow run command from your command line, specifying the project’s directory and any necessary arguments (e.g., tracking URI).</p><p>Once you have created your MLflow Project directory, you can run it using the mlflow run command from your command line. This will create a new Conda environment based on the dependencies specified in your Conda environment file and execute the entry point specified in your MLproject file. You can pass any necessary arguments to your entry point using the — param-name=value syntax.</p><p>Here’s an example command to run your MLflow Project:</p><pre>mlflow run rf_diabetes_project --param tracking_uri=http://localhost:5000</pre><p>11. View your results in the MLflow tracking UI</p><p>Once your MLflow Project has finished running, you can view the results in the MLflow tracking UI. This allows you to easily see the performance of each hyperparameter combination, as well as the best-performing model that was registered to the MLflow Model Registry.</p><p>To view your results in the MLflow tracking UI, simply navigate to the URI that you set in step 3 (e.g., “<a href="http://localhost:5000/">http://localhost:5000</a>&quot;) in your web browser.</p><p>This is a basic guide to setup things, but you can always refer to mflow documentation for any syntax related guide.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65daace656" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to EBS — Elastic Block Store]]></title>
            <link>https://medium.com/@asimaliofficial0/introduction-to-ebs-elastic-block-store-229939b92c50?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/229939b92c50</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 20:55:31 GMT</pubDate>
            <atom:updated>2023-04-02T20:55:31.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to EBS — Elastic Block Store</h3><p>Amazon Elastic Block Store (Amazon EBS) is a scalable and persistent block storage service for Amazon EC2 instances. EBS provides highly available, durable, and performant storage volumes for running applications on EC2 instances. In this blog post, we will focus on working with EBS and guide you through the process of creating an Amazon EBS volume, attaching it to an instance, applying a file system to the volume, and taking a snapshot backup.</p><p>Before we begin, it is important to note that you should be familiar with basic Amazon EC2 usage and basic Linux server administration. You should feel comfortable using the Linux command-line tools.</p><p>To create an Amazon EBS volume, you need to navigate to the EC2 dashboard in the AWS Management Console and select the “Volumes” option under the “Elastic Block Store” section. From there, you can create a new volume and specify the size and type of the volume.</p><p>Once you have created the volume, you can attach and mount it to an EC2 instance using the Linux command-line tools. First, you need to identify the device name of the volume, which can be done using the “lsblk” command. After identifying the device name, you can use the “mkfs” command to apply a file system to the volume and then mount the volume to a directory on the instance.</p><p>After attaching and mounting the volume to the instance, you can create a snapshot backup of the volume. Snapshots are incremental backups of the volume and can be used to restore the volume to a previous state. You can create a snapshot by selecting the volume in the EC2 dashboard and choosing the “Create Snapshot” option.</p><p>To create a new volume from your snapshot, you can select the snapshot in the EC2 dashboard and choose the “Create Volume” option. From there, you can specify the size and type of the new volume and select the availability zone where you want the volume to be located.</p><p>Once you have created the new volume, you can attach and mount it to the instance using the same process as before. This will give you a new volume with the same data as the original volume, but with a different device name.</p><p>In conclusion, Amazon EBS provides a scalable and persistent block storage service for Amazon EC2 instances. By following the steps outlined in this blog post, users can create an Amazon EBS volume, attach and mount it to an EC2 instance, apply a file system to the volume, take a snapshot backup, create a new volume from the snapshot, and attach and mount the new volume to the instance. With EBS, users can ensure that their data is highly available, durable, and performant, and can scale their storage needs as their applications grow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=229939b92c50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides scalable compute capacity…]]></title>
            <link>https://medium.com/@asimaliofficial0/amazon-elastic-compute-cloud-amazon-ec2-is-a-web-service-that-provides-scalable-compute-capacity-f7b8556b0317?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b8556b0317</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 18:44:50 GMT</pubDate>
            <atom:updated>2023-04-02T18:44:50.089Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Amazon EC2</h3><p>Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides scalable compute capacity in the cloud. It allows users to launch and manage virtual servers, called instances, on the Amazon Web Services (AWS) infrastructure. In this blog post, we will cover the basic overview of launching, resizing, managing, and monitoring an Amazon EC2 instance, and also launch a web server with termination protection enabled, monitor the instance, modify the security group, resize the instance, explore EC2 limits, test termination protection, and terminate the instance.</p><p>Launching an EC2 instance is a straightforward process. First, you need to choose an Amazon Machine Image (AMI) that best fits your needs. The AMI contains the operating system, application server, and applications that you want to run on your instance. After selecting the AMI, you need to choose the instance type, which determines the amount of CPU, memory, and storage that the instance will have. Once you have launched the instance, you can connect to it using SSH or Remote Desktop.</p><p>To launch a web server with termination protection enabled, you can create an EC2 instance with the Amazon Linux AMI and install the Apache web server. After that, you can enable termination protection for the instance to prevent accidental termination.</p><p>Monitoring your EC2 instance is essential to ensure that it is running optimally. AWS provides various tools to monitor your instance, including Amazon CloudWatch. CloudWatch provides real-time monitoring of CPU utilization, network traffic, and disk usage, among other metrics.</p><p>Modifying the security group that your web server is using to allow HTTP access is also essential to ensure that your instance can be accessed from the internet. You can modify the security group to allow inbound HTTP traffic, which is necessary for running a web server.</p><p>Resizing your Amazon EC2 instance to scale is a straightforward process. You can resize your instance by stopping it, changing its instance type, and then starting it again. This process will resize the instance and preserve its data and configuration.</p><p>Exploring EC2 limits is essential to ensure that you are aware of the resource limits of your AWS account. AWS sets default limits for various resources, including instances, volumes, and Elastic IP addresses. You can request limit increases for these resources if necessary.</p><p>Testing termination protection is also essential to ensure that your instances are protected from accidental termination. You can test termination protection by attempting to terminate an instance that has termination protection enabled.</p><p>Finally, terminating your EC2 instance is a simple process. You can terminate an instance by selecting it in the EC2 console and choosing the “Terminate” option. Once the instance is terminated, all of its data and configuration are lost.</p><p>In conclusion, Amazon EC2 provides a powerful and flexible platform for launching and managing virtual servers in the cloud. With EC2, users can launch instances quickly, monitor them, resize them, and terminate them as needed. By following the steps outlined in this blog post, users can launch a web server with termination protection, monitor their instances, modify their security groups, resize their instances, explore EC2 limits, test termination protection, and terminate their instances with ease.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b8556b0317" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your VPC and Launch a Web Server]]></title>
            <link>https://medium.com/@asimaliofficial0/build-your-vpc-and-launch-a-web-server-a1d56f6a709a?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1d56f6a709a</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 18:32:11 GMT</pubDate>
            <atom:updated>2023-04-02T18:32:11.949Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon Web Services (AWS) is a cloud computing platform that offers various services to help individuals and businesses run their applications and services. One of the key services that AWS provides is Amazon Virtual Private Cloud (Amazon VPC), which allows users to create a virtual network within the AWS infrastructure.</p><p>During the lab I did during my AWS course, I learned how to build my own VPC and launch a web server using Amazon EC2 instances. The objective of the lab was to create a customized network using VPC, add components to it, and configure an EC2 instance to run a web server.</p><p>To get started, I first created a VPC with a CIDR block, which is a range of IP addresses that will be used for the VPC. I then created a subnet within the VPC, which is a smaller section of the VPC with its own CIDR block. The subnet allows me to place my EC2 instance in a specific part of the VPC.</p><p>Next, I created a security group for my VPC, which is a virtual firewall that controls inbound and outbound traffic for the EC2 instance. I specified the rules for the security group to allow HTTP and HTTPS traffic, which are required for running a web server.</p><p>After creating the VPC, subnet, and security group, I launched an Amazon EC2 instance within the subnet. I configured the instance to run a web server by installing Apache and creating an HTML file to serve as the home page.</p><p>Finally, I accessed the web server by using the public IP address of the EC2 instance in a web browser. The web server was successfully launched and displayed the custom home page that I had created.</p><p>In conclusion, using Amazon Virtual Private Cloud (Amazon VPC) to create a customized network and launching an Amazon EC2 instance to run a web server is a powerful tool for anyone looking to host a website or application in the cloud. AWS provides a robust infrastructure and user-friendly interface that allows even those with limited technical expertise to build and launch a web server in a matter of minutes. With AWS and VPC, users can enjoy the benefits of scalable and reliable cloud computing without the hassle of maintaining physical hardware or infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1d56f6a709a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Workflow for GitHub Repository using GitHub Actions — MLOps]]></title>
            <link>https://medium.com/@asimaliofficial0/creating-workflow-for-github-repository-using-github-actions-mlops-7689636d2772?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7689636d2772</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 08:50:22 GMT</pubDate>
            <atom:updated>2023-02-26T08:50:22.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating Workflow for GitHub Repository using GitHub Actions — MLOps</h3><p><strong>Introduction</strong></p><p>As machine learning continues to gain popularity, the need for efficient and effective management of machine learning workflows and operations (MLOps) has become more pronounced. GitHub Actions is a powerful tool that can be used to automate MLOps workflows and streamline the machine learning process. In this blog, we will explore how to create a workflow for a GitHub repository using GitHub Actions and MLOps.</p><p><strong>Set up YAML file:</strong></p><p>Firstly, we need to create a YAML file that defines the workflow. The file should be placed in the .github/workflows directory of the repository, with a filename ending in .yml. The YAML file should include the steps required to complete the MLOps workflow, such as setting up the Python environment, installing dependencies, training and evaluating the model. An example workflow can be something like given below:</p><pre>name: Super-Linter<br><br>on: push<br><br>jobs: <br>  super-lint:<br>    runs-on: ubuntu-latest<br>    <br>    steps:<br>     - name: Checkout code<br>       uses: actions/checkout@v2<br>       <br>     - name: Install flake8<br>       run: pip install flake8<br>       <br>     - name: Run flake8<br>       uses: suo/flake8-github-action@releases/v1<br>       env: <br>          DEFAULT_BRANCH: main<br>          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}</pre><p>We can set the branches on which the workflow should run, we can evaluate different models in the workflow, and can run the selective model based on analysis. After analyzing our requirements, it is very easy to make a workflow for any kind of project.</p><p><strong>Monitor the workflow:</strong></p><p>Monitoring the workflow is also an important step in the MLOps process. This can be done by going to the “Actions” tab in the GitHub repository, which shows a list of all workflows that have been triggered, along with their status and logs. If the workflow encounters an error, it is important to debug the issue and adjust the workflow accordingly. Debugging of workflow is very easy as it shows the output of each step separately. So, we can easily debug a single step where an error is encountered.</p><p>we can add multiple jobs after successful execution of initial version. With the evaluation of project, workflow can be modified, and we can add new jobs or even modify the jobs according to updated requirements of the project.</p><p><strong>Conclusion:</strong></p><p>GitHub Actions provides a powerful tool for automating MLOps workflows and streamlining the machine learning process. By creating a YAML file that defines the workflow, committing the YAML file to the repository, monitoring the workflow, it is possible to create an efficient and effective MLOps workflow using GitHub Actions.</p><p>Follow for more detailed blogs on Cloud computing and MLOps. For any query, reach out at asimaliofficial0@gmail.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7689636d2772" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Identity and Access Management]]></title>
            <link>https://medium.com/@asimaliofficial0/aws-identity-and-access-management-24c69f4e8222?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/24c69f4e8222</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 17:05:47 GMT</pubDate>
            <atom:updated>2023-02-22T17:05:47.248Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Overview</strong></p><p>Amazon Web Services (AWS) provides a wide range of cloud computing services to businesses and individuals. One of the key features of AWS is Identity and Access Management (IAM), which enables users to create and manage roles for different users, groups, and resources within their AWS accounts. In this blog, we will discuss IAM user roles in AWS, their benefits, and how to create and manage them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Jgvkdm-gniHQiRT8JcJtzA.png" /></figure><p><strong>Benefits</strong></p><p>IAM user roles offer several benefits to AWS users, including granular access control, temporary access, and simplified management of permissions across your AWS environment. By creating and managing IAM user roles, you can ensure the security and efficiency of your AWS resources and reduce the risk of misconfiguration or unauthorized access.</p><h3>Scenario</h3><p>Let’s consider a scenario where you have three user groups: EC2-support, EC2-admin, and S3-support. You want to give each group different levels of access to your EC2 and S3 resources. To do this, you create three different IAM policies: EC2ReadOnly for EC2-support, EC2AdminAccess for EC2-admin, and S3ReadOnly for S3-support. You then attach each policy to its respective user group.</p><p>Next, you add three users to the groups: User-1 to EC2-support, User-2 to EC2-admin, and User-3 to S3-support. When each user logs in to their AWS console, they will have access to the resources based on their group membership and the permissions granted to their group.</p><p>Here’s how you can test this scenario:</p><ol><li>Log in to your AWS Management Console and navigate to the IAM service.</li><li>Create three groups: EC2-support, EC2-admin, and S3-support.</li><li>Create three IAM policies: EC2ReadOnly for EC2-support, EC2AdminAccess for EC2-admin, and S3ReadOnly for S3-support.</li><li>Attach each policy to its respective user group.</li><li>Add User-1 to EC2-support, User-2 to EC2-admin, and User-3 to S3-support.</li><li>Log in as User-1 and navigate to the EC2 console. You should be able to view the EC2 instances in read-only mode.</li><li>Log out and log in as User-2. You should have access to the EC2 instances with administrative privileges.</li><li>Log out and log in as User-3. You should be able to view the S3 buckets in read-only mode.</li></ol><p>By using IAM user roles in this scenario, you were able to give different users different levels of access to your EC2 and S3 resources based on their group membership. This simplified the management of permissions across your AWS environment and ensured that each user had the appropriate level of access.</p><p><strong>Observations</strong></p><p>As you noted, managing multiple users with different levels of permissions in AWS is straightforward using IAM user roles. By carefully defining policies and groups, you can ensure that each user has the right level of access to the resources they need without having to manually manage permissions for each individual user.</p><p>In addition, AWS offers a range of other features that can help optimize your use of cloud resources, such as auto-scaling, cost optimization, and security features like AWS Key Management Service (KMS). By exploring these features and using them effectively, you can further enhance the efficiency and security of your AWS environment.</p><h3>Conclusion</h3><p>IAM user roles in AWS provide granular access control, temporary access, and simplified management of permissions across your AWS environment. By creating and managing IAM user roles, you can ensure the security and efficiency of your AWS resources and reduce the risk of misconfiguration or unauthorized access. By testing your IAM user roles</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24c69f4e8222" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating and accessing the Linux VM on Azure Cloud]]></title>
            <link>https://medium.com/@asimaliofficial0/creating-and-accessing-the-linux-vm-on-azure-cloud-9608b9200cbe?source=rss-dc3d299c1c7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9608b9200cbe</guid>
            <dc:creator><![CDATA[Asim Ali]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 13:59:13 GMT</pubDate>
            <atom:updated>2023-02-19T13:59:13.122Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent years, cloud computing has become an essential part of modern businesses, and with the rise of remote work, it has become even more crucial. One of the most popular cloud computing providers is Microsoft Azure. Azure provides a vast array of services, including virtual machines (VMs), which allow you to run a full-fledged operating system in the cloud. In this blog, we will walk you through the process of creating and accessing a Linux virtual machine on Azure cloud. We will securely access the VM using SSH, RDP and HTTP by setting up Firewall rules. Public IP for the machine used for demonstration is hidden intentionally. Step by step guide to do all the steps is given as:</p><h3><strong>Step 1: Sign up for Azure</strong></h3><p>To get started with Azure, you need to sign up for an account. If you do not have an account, you can sign up for a free trial account at <a href="https://azure.microsoft.com/free/">https://azure.microsoft.com/free/</a>. This will give you $200 in Azure credits that you can use to experiment with Azure services.</p><h3>Step 2: Create a Linux VM</h3><p>Once you have an Azure account, you can create a Linux VM by following these steps:</p><ol><li>Log in to the Azure portal (<a href="https://portal.azure.com/">https://portal.azure.com/</a>).</li><li>Click on the “Create a resource” button on the left-hand side of the screen.</li><li>In the search box, type “Ubuntu Server” and select the “Ubuntu Server” option.</li><li>Click on the “Create” button.</li><li>Fill in the details for your VM, such as the resource group, VM name, and username/password.</li><li>Select the VM size and other details.</li><li>Choose your networking options.</li><li>Review and create the VM.</li></ol><p>After creating the machine, navigate to the Virtual machine and it should have such properties like in given picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqOILYcH8iYoKjkXIm-6zQ.png" /><figcaption>Machine Specifications</figcaption></figure><h3>Step 3: Access the Linux VM using SSH</h3><p>Accessing a Linux virtual machine through SSH is a common and secure way to manage your machine remotely. SSH (Secure Shell) is a cryptographic network protocol that allows secure data communication between two devices. To access your Linux virtual machine on Azure through SSH, follow these steps:</p><p><strong>Step 1: Get the public IP address of the VM</strong></p><p>Log in to the Azure portal and navigate to the virtual machine you want to access. Click on the “Overview” tab, and you will see the public IP address of the virtual machine.</p><p><strong>Step 2: Open a terminal</strong></p><p>Open a terminal application on your local machine. If you are using a Mac or Linux, you can use the built-in terminal application. If you are using Windows, you can use a terminal emulator like PuTTY or Windows Subsystem for Linux (WSL).</p><p><strong>Step 3: Connect to the virtual machine using SSH</strong></p><p>In the terminal, type the following command:</p><pre>ssh username@public-ip-address</pre><p>Replace “username” with your username, and “public-ip-address” with the public IP address of your virtual machine. After getting the access of the machine, you can install any software in the virtual machine through command line. I used PuTTY software, and after providing the credentials, following was the result. I also verified the connection by running a command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03u4o9XOiHncgrc5_6sU3g.png" /><figcaption>Accessing the machine using SSH</figcaption></figure><h3>Step 4: Access the Linux VM using RDP</h3><p>Remote Desktop Protocol (RDP) is a protocol developed by Microsoft that allows a user to remotely access a desktop or server running Windows operating system. RDP provides a graphical interface for remote access, and it can be used to access a virtual machine on Azure running Windows. To access your Windows virtual machine on Azure through RDP, follow these steps:</p><p><strong>Step 1: Install the essentials in VM through SSH terminal</strong></p><p>We need to install some essentials in VM to access the virtual machine from local machine. This can be achieved by using following five commands in SSH terminal which we configured in Step 3.</p><pre>1. sudo apt update &amp;&amp; sudo apt upgrade -y<br>2. sudo apt-get install ubuntu-desktop xrdp stacer -y<br>3. sudo cp /etc/iptables/rules.v4 /etc/iptables/rules.v4.bak &amp;&amp; sudo truncate -s 0 /etc/iptables/rules.v4<br>4. sudo rm /usr/share/polkit-1/actions/org.freedesktop.color.policy<br>5. sudo passwd ubuntu      Example password : t6y1x9n6h7j1  so long,complex and not in a dictionary</pre><p><strong>Step 2: Get the public IP address of the VM</strong></p><p>Log in to the Azure portal and navigate to the virtual machine you want to access. Click on the “Overview” tab, and you will see the public IP address of the virtual machine.</p><p><strong>Step 3: Open the Remote Desktop Connection Application</strong></p><p>On your local machine, open the Remote Desktop Connection application. You can find this application on Windows by typing “Remote Desktop Connection” in the Start menu search bar.</p><p><strong>Step 4: Connect to the virtual machine using RDP</strong></p><p>In the Remote Desktop Connection window, type the public IP address of your virtual machine and “port number” on which you are allowing the connection in the “Computer” field. Click on the “Connect” button to start the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*g0JY5ogVHoIvrKSfc3PxwA.png" /><figcaption>Access using RDP</figcaption></figure><p>After successful connection, you will be able to access the machine through GUI. If you face an error while accessing the machine, then it must be firewall rules which are not allowing you to access the machine. For that, we can set some inbound firewall rules in Azure for secure connections.</p><h3>Step 5: Setting up Firewall inbound rules</h3><p>Setting up firewall inbound rules in Azure is an important step in securing your virtual machines and network resources. Inbound rules determine the traffic that is allowed to access your resources, and they can be configured using Azure Portal, Azure CLI, or PowerShell. Here are the steps to set up firewall inbound rules in Azure using the Azure Portal:</p><p><strong>Step 1: Navigate to the Networking</strong></p><p>Log in to the Azure portal and navigate to the virtual network that you want to add an inbound rule to. Click on “Networking” under “Settings” in the left-hand menu.</p><p><strong>Step 2: Add an inbound rule</strong></p><p>Click on the Network Security Group that you want to add an inbound rule to. Click on “Inbound port rules” and then click on the “+ Add” button to add a new rule.</p><p><strong>Step 3: Configure the inbound rule</strong></p><p>In the “Add inbound security rule” window, configure the following settings:</p><ul><li><em>Name:</em> Give the rule a descriptive name.</li><li><em>Source:</em> Select the source of the traffic. You can select a specific IP address, a range of IP addresses, or a service tag.</li><li><em>Service:</em> Select the service that the rule applies to. You can select a specific port or a range of ports.</li><li><em>Protocol:</em> Select the protocol that the rule applies to. You can select TCP, UDP, or Any.</li><li><em>Action:</em> Select the action that the rule applies to. You can allow or deny the traffic.</li><li><em>Priority:</em> Set the priority of the rule. Lower numbers have higher priority, and the rules are evaluated in priority order.</li><li><em>Description:</em> Add a description of the rule (optional).</li></ul><p>Step 4: Save the inbound rule After you have configured the settings for the inbound rule, click on the “Add” button to save the rule.</p><p>I added a rule to allow access for RDP at 3389 port number, so that I can access the virtual machine. Similarly, you can add rules related to HTTP request (to be used in next step) or any access method. Following is the snapshot of the rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44WCC391RYOKgWgxhWgTEQ.png" /><figcaption>Adding Inbound port rules</figcaption></figure><h3>Step 6: Hosting using a simple HTTP Server and accessing using public IP</h3><p>Accessing a virtual machine on Azure using HTTP is a common way to interact with web applications or services hosted on the VM. To access a virtual machine using HTTP, you will need to configure the necessary network settings and ensure that the necessary ports are open.</p><p><strong>Step 1: Choose an HTTP server software</strong></p><p>There are several HTTP server software options available, such as Apache, Nginx, and SimpleHTTPServer (Python built-in module). Choose the one that best suits your needs. I used SimpleHTTPServer for demonstration purpose.</p><p><strong>Step 2: Install the HTTP server software</strong></p><p>It depends upon the selection of software. For SimpleHTTPServer, you can use following command and install it on VM. Note that python should already be installed on VM to install this, if python is not installed, install it beforehand.</p><pre>python -m SimpleHTTPServer</pre><p>After running this command, your virtual machine should be serving online at public IP of machine using a specific port (You need to allow that port in inbound rules of machine as specified in previous step). You can access it by public IP. Following would be the output after serving the machine online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bYyCIrdtnxcBgu-gWF_iuw.png" /><figcaption>Accessing using HTTP</figcaption></figure><h3>Conclusion</h3><p>Creating and accessing a Linux virtual machine on Azure cloud is a straightforward process. With Azure, you can quickly set up a Linux VM and start running the software you need. By using Azure, you can take advantage of the scalability and flexibility of cloud computing and focus on your core business without worrying about the infrastructure.</p><p>Email me at asimaliofficial0@gmail.com for any query. Follow for more blogs related to Cloud and MLOps and much more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9608b9200cbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>