<?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 Dinesh Asija on Medium]]></title>
        <description><![CDATA[Stories by Dinesh Asija on Medium]]></description>
        <link>https://medium.com/@dineshasija?source=rss-a0f18d8339c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YrFwShRKABOmYg8iMhWnsQ.png</url>
            <title>Stories by Dinesh Asija on Medium</title>
            <link>https://medium.com/@dineshasija?source=rss-a0f18d8339c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:00:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dineshasija/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[Implementing Istio Service Mesh: Traffic, Security, and Observability Simplified]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://dineshasija.medium.com/implementing-istio-service-mesh-traffic-security-and-observability-simplified-dd2d10b71055?source=rss-a0f18d8339c------2"><img src="https://cdn-images-1.medium.com/max/1536/1*0WdBMa5Gvl48q-h9QtyPFQ.png" width="1536"></a></p><p class="medium-feed-snippet">Managing service-to-service communication, security, and observability in a microservices architecture can quickly become complex as&#x2026;</p><p class="medium-feed-link"><a href="https://dineshasija.medium.com/implementing-istio-service-mesh-traffic-security-and-observability-simplified-dd2d10b71055?source=rss-a0f18d8339c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://dineshasija.medium.com/implementing-istio-service-mesh-traffic-security-and-observability-simplified-dd2d10b71055?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd2d10b71055</guid>
            <category><![CDATA[istio]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 06:29:17 GMT</pubDate>
            <atom:updated>2026-01-14T06:29:17.791Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Streamlining Your Software Development: Mastering CI/CD Best Practices with Jenkins]]></title>
            <link>https://dineshasija.medium.com/streamlining-your-software-development-mastering-ci-cd-best-practices-with-jenkins-5bc595395f20?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bc595395f20</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 09:44:43 GMT</pubDate>
            <atom:updated>2023-08-02T09:44:43.230Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHgm-QP5csJZac9uf2SMeA.gif" /></figure><p><strong>Certainly! Before diving into best practices, let’s take a moment to understand CI/CD and Jenkins.</strong></p><h3><strong>Continuous Integration and Continuous Deployment (CI/CD):</strong></h3><p>CI/CD is a set of practices used in software development to automate the process of integrating code changes and deploying applications to production environments. The main goals of CI/CD are to increase development efficiency, improve software quality, and reduce the time it takes to deliver new features to users.</p><p><strong>1. Continuous Integration (CI):</strong><br> CI is the practice of frequently integrating code changes from multiple developers into a shared repository. Each time a developer commits code, automated build and test processes are triggered to ensure that the new changes integrate smoothly with the existing codebase. This helps to identify and resolve integration issues early in the development cycle.</p><p><strong>2. Continuous Deployment (CD):</strong><br> CD is the practice of automatically deploying code changes to production or staging environments after they have passed all the necessary automated tests. This ensures that new features and bug fixes are rapidly delivered to users with minimal manual intervention.</p><h3><strong>Jenkins:</strong></h3><p>Jenkins is one of the most popular open-source automation servers that facilitates CI/CD processes. It provides a web-based interface for creating and managing automated pipelines. A pipeline in Jenkins is a series of steps that define the entire CI/CD process, from code integration to deployment.</p><p>Jenkins offers a wide range of plugins, integrations, and community support, making it highly customizable and suitable for various development environments.</p><p>Now that we have a basic understanding of CI/CD and Jenkins, we can explore best practices for implementing these processes effectively.</p><h3>Some best practices to follow while setting up your CI/CD with Jenkins:</h3><p>Creating a Continuous Integration and Continuous Deployment (CI/CD) pipeline using Jenkins can significantly improve your software development process. Here are some best practices to follow while setting up your CI/CD with Jenkins:</p><p><strong>1. Version Control System (VCS):</strong> Use a version control system like Git to manage your source code. Jenkins can integrate seamlessly with Git repositories and trigger builds automatically whenever there’s a new commit. Plugins in Jenkins for VCS</p><blockquote><strong>- Jenkins Git Plugin:</strong> Integrates Jenkins with Git repositories, allowing you to trigger builds on code commits.</blockquote><blockquote><strong>- Jenkins GitHub Integration Plugin:</strong> Provides additional features for integrating Jenkins with GitHub repositories.</blockquote><p><strong>2. Minimal Dependencies:</strong> Ensure your build environment has minimal dependencies. Avoid relying on external libraries or resources that may cause instability or inconsistencies in the build process. Plugins in Jenkins help to achieve minimal dependencies</p><blockquote><strong>- Jenkins Docker Plugin:</strong> Allows you to run build environments in Docker containers, ensuring minimal dependencies on Jenkins servers.</blockquote><p><strong>3. Automated Builds:</strong> Set up Jenkins to perform automated builds on every code commit. This will help identify issues early and ensure the codebase is always in a working state.</p><blockquote><strong>- Jenkins Pipeline Plugin:</strong> This enables you to define and manage your build process using Jenkins Pipeline DSL or Groovy scripts.</blockquote><p><strong>4. Parallel Builds:</strong> Configure Jenkins to perform parallel builds if possible. This can speed up the build process significantly, especially if you have multiple projects or components.</p><blockquote><strong>- Jenkins Build Flow Plugin:</strong> Helps you define and run parallel and sequential build steps.</blockquote><p><strong>5. Artifact Management:</strong> Store build artifacts in a repository (e.g., Nexus, JFrog Artifactory) to ensure they are easily accessible and reproducible.</p><blockquote><strong>- Jenkins Artifactory Plugin:</strong> Integrates Jenkins with JFrog Artifactory for artifact management.</blockquote><blockquote><strong>- Jenkins Nexus Platform Plugin:</strong> Connects Jenkins to Sonatype Nexus for artifact storage and management.</blockquote><p><strong>6. Testing: Integrate automated testing into your CI/CD pipeline. </strong>This includes unit tests, integration tests, and any other relevant tests for your project. Ensure that the pipeline fails if the tests do not pass.</p><blockquote><strong>- Jenkins JUnit Plugin:</strong> Allows you to publish and view JUnit test results in Jenkins.</blockquote><blockquote><strong>- Jenkins TestNG Plugin:</strong> Integrates TestNG test reports with Jenkins.</blockquote><p><strong>7. Code Analysis:</strong> Use static code analysis tools to identify potential issues, and security vulnerabilities, and maintain code quality. Examples include SonarQube or ESLint for JavaScript projects.</p><blockquote><strong>- Jenkins SonarQube Plugin:</strong> Integrates Jenkins with SonarQube for code quality analysis.</blockquote><blockquote><strong>- Jenkins ESLint Plugin:</strong> Integrates ESLint reports into Jenkins for JavaScript projects.</blockquote><p><strong>8. Deployment: </strong>Automate the deployment process to various environments (e.g., staging, production) using configuration management tools like Ansible, Puppet, or Kubernetes for containerized applications.</p><blockquote><strong>- Jenkins Kubernetes Plugin:</strong> Allows you to deploy applications to Kubernetes clusters.</blockquote><blockquote><strong>- Jenkins Ansible Plugin:</strong> Integrates Jenkins with Ansible for automated deployments.</blockquote><p><strong>9. Environment Isolation:</strong> Keep your Jenkins build environment isolated from your production environment to avoid conflicts and unexpected outcomes.</p><blockquote><strong>- Jenkins Docker Plugin: </strong>As mentioned earlier, this plugin can help create isolated build environments using Docker containers.</blockquote><p><strong>10. Notifications: </strong>Set up notifications for build failures and successful deployments. Jenkins can send notifications via email, Slack, or other communication channels to keep the team informed about the build status.</p><blockquote><strong>- Jenkins Email Extension Plugin:</strong> Enables email notifications for build status.</blockquote><blockquote><strong>- Jenkins Slack Plugin: </strong>Sends build notifications to Slack channels.</blockquote><p><strong>11. Credentials Management:</strong> Avoid hardcoding sensitive information (e.g., API keys, passwords) in your Jenkins pipeline. Use Jenkins’ built-in credentials management feature to securely store and access sensitive data.</p><blockquote><strong>- Jenkins Credentials Plugin: </strong>Allows you to manage and store credentials securely within Jenkins.</blockquote><p><strong>12. Pipeline as Code:</strong> Use Jenkins’ “Pipeline as Code” approach to define your CI/CD pipeline. This allows you to version control the pipeline and makes it easier to maintain and reproduce.</p><blockquote><strong>- Jenkinsfile: </strong>Jenkins supports defining pipelines directly in a Jenkinsfile, which can be version-controlled along with the codebase.</blockquote><p><strong>13. Monitoring and Logging: </strong>Implement monitoring and logging for your CI/CD pipeline to identify and address any performance or stability issues.</p><blockquote><strong>- Jenkins Monitoring Plugin:</strong> Provides monitoring and metrics for Jenkins itself.</blockquote><blockquote><strong>- Jenkins Logstash Plugin:</strong> Sends Jenkins log data to Logstash for centralized logging.</blockquote><p><strong>14. Continuous Improvements:</strong> Continuously review and improve your CI/CD pipeline. Encourage feedback from the development team and stakeholders to identify areas for enhancement.</p><blockquote><strong>- Jenkins Blue Ocean Plugin:</strong> Offers a more user-friendly and interactive interface for visualizing and editing pipelines.</blockquote><p><strong>15. Backup and Disaster Recovery:</strong> Regularly back up your Jenkins configurations and settings to avoid data loss in case of system failures or disasters.</p><blockquote><strong>- Jenkins Backup Plugin:</strong> Helps you back up your Jenkins configurations and settings regularly.</blockquote><h3>Note: It’s always a good practice to evaluate and select the ones that best suit your needs.</h3><p>As I conclude this article, thank you for reading. If you have any questions or need further clarification, feel free to reach out to me on <a href="https://www.linkedin.com/in/dineshasija/"><strong>LinkedIn</strong></a>. I’d be happy to connect and engage in meaningful discussions.</p><p>If you enjoyed my article, kindly support it by hitting the <strong>“Like”</strong> button and following my profile for more insightful content.</p><h4>Thank you for your time and interest in my work. Looking forward to connecting with you on <a href="https://www.linkedin.com/in/dineshasija/">LinkedIn!</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bc595395f20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AWS is used by companies and it helps in their growth]]></title>
            <link>https://dineshasija.medium.com/how-aws-is-used-by-companies-and-it-helps-in-their-growth-d23c25b24b8f?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d23c25b24b8f</guid>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Thu, 18 Mar 2021 06:48:15 GMT</pubDate>
            <atom:updated>2021-05-21T07:01:16.713Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6AZQJJBNOxBlD4NbgfW_cA.jpeg" /></figure><p><strong>Coca-Cola</strong>, or <strong>Coke</strong>, is a <a href="https://en.wikipedia.org/wiki/Carbonation">carbonated</a> <a href="https://en.wikipedia.org/wiki/Soft_drink">soft drink</a> manufactured by <a href="https://en.wikipedia.org/wiki/The_Coca-Cola_Company">The Coca-Cola Company</a>. Originally marketed as a <a href="https://en.wikipedia.org/wiki/Temperance_bar">temperance drink</a> and intended as a <a href="https://en.wikipedia.org/wiki/Patent_medicine">patent medicine</a>, it was invented in the late 19th century by <a href="https://en.wikipedia.org/wiki/John_Stith_Pemberton">John Stith Pemberton</a> and was bought out by businessman <a href="https://en.wikipedia.org/wiki/Asa_Griggs_Candler">Asa Griggs Candler</a>, whose marketing tactics led Coca-Cola to its dominance of the world soft-drink market throughout the 20th century. The drink’s name refers to two of its original ingredients: <a href="https://en.wikipedia.org/wiki/Coca">coca</a> leaves, and <a href="https://en.wikipedia.org/wiki/Kola_nut">kola nuts</a> (a source of <a href="https://en.wikipedia.org/wiki/Caffeine">caffeine</a>). The current <a href="https://en.wikipedia.org/wiki/Coca-Cola_formula">formula of Coca-Cola</a> remains a <a href="https://en.wikipedia.org/wiki/Trade_secret">trade secret</a>; however, a variety of reported recipes and experimental recreations have been published.</p><p><a href="https://www.coca-cola.com/">The Coca-Cola Company</a> — with more than 500 brands sold in over 207 countries — runs hundreds of marketing promotions every year. During Super Bowl XLVII, The Coca-Cola Company ran an ad that encouraged audience members to vote online for their favorite commercial ending. At the time, the company’s environment was on-premises, and the massive spike of traffic to the site caused delays and a poor user experience. According to Michael Connor, digital marketing platform architect at Coca-Cola North America, this event triggered an internal push to move to the public cloud with Amazon Web Services (AWS).</p><h3>Migrated to AWS</h3><p><strong>The Coca-Cola Company </strong>migrated to AWS to reduce costs and increase operational efficiencies. Moving to a DevOps model, The Coca-Cola Company leveraged <a href="https://aws.amazon.com/elasticbeanstalk/">AWS Elastic Beanstalk</a> to enable its creative agencies to more efficiently deploy applications. The company also used <a href="https://aws.amazon.com/autoscaling/">AWS Auto Scaling</a> to optimize performance and costs with its applications, allowing them to respond better to sudden influxes of site traffic. By migrating to AWS, The Coca-Cola Company achieved 40 percent operational savings, coupled with an 80 percent reduction in IT help desk tickets due to added automation.</p><h3>Thanks for Reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d23c25b24b8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[High Availability Architecture with AWS CLI]]></title>
            <link>https://dineshasija.medium.com/high-availability-architecture-with-aws-cli-55fe8dd1e535?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/55fe8dd1e535</guid>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Wed, 17 Mar 2021 03:58:29 GMT</pubDate>
            <atom:updated>2021-03-17T04:09:43.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*XBjUVney4HPLJldbNp_G2Q.png" /></figure><h4>Synopsis</h4><p><strong>🔰 Create High Availability Architecture with AWS CLI 🔰<br>🔅The architecture includes-<br>- Webserver configured on EC2 Instance<br>- Document Root(/var/www/html) made<br>persistent by mounting on EBS Block Device.<br>- Static objects used in code such as<br>pictures stored in S3<br>- Setting up Content Delivery Network using<br>CloudFront and using the origin domain as an S3 bucket.<br>- Finally, place the Cloud Front URL on the<br>web app code for security and low latency.</strong></p><h3>Lets Start</h3><p>First, let us check the version of aws in our system using the command</p><p><strong>aws --version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GmQGkTFVt7oPh2EI0dR6Uw.jpeg" /></figure><p>Now we run an EC2 instance using the command with our required configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5xGQFC86Yy-cpWJQoWJWQ.jpeg" /></figure><p>Now we check our instance created or not, If it is not created yet wait for some minutes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MR8L6NeFmjq99BMQAdiJ6Q.jpeg" /></figure><p>Now we create a volume for our EC2 instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xRbCNdFp8zSNRQH1vOTPA.jpeg" /></figure><p>Our volume is created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDaS2O8xV3ExYbpEQ-K37A.jpeg" /></figure><p>Now we attach our volume to our EC2 instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3NpkNofWqpCrK-efITd2Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrplYa073PHd1i_M8pdBBA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdzCzHhIAMa8Aj0FG9vFdg.jpeg" /></figure><p>Now using the aws ec2 describe instances command we check our instances</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7Bg3cG3epMkfOXXzPE1Ag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nt4DOlwN77bK7nA_fMq59g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82sdZ0ckFv0fNSj7WO80eA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkN1VhbDnI9CGkycck52Qw.jpeg" /></figure><p>Now we create an S3 bucket to store our data like images you can give any unique to the bucket using CLI command</p><p>aws s3api create-bucket --bucket &lt;bucketname&gt; --region &lt;regionID&gt; --create-bucket-configuration LocationConstraint &lt;regionID&gt; --profile &lt;profilename&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIFxVSH5DGAlUBYUpLHJpg.jpeg" /></figure><p>Let we check our bucket is created or not ya its created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovPOLlnvvuO_nCiaiqUcnA.jpeg" /></figure><p>Now we copy the folder from our system to S3 bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R3Do4CmKhiOymWVM-QHMRA.jpeg" /></figure><p>Ya its copied succesfully</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBOwwkYNsLsmNvmCKD9LJQ.jpeg" /></figure><p>Now we create a CloudFront distribution using the command</p><p>aws cloudfront create-distribution --origin-domain &lt;s3bucketurl&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMS2CruxmL4ITqSBK-X6iA.jpeg" /></figure><p>Our CloudFront is created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgNvGg_Wfh7bMiaaTxm_wQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGnTzmcC8bEHkgWXLc7FbA.jpeg" /></figure><p>Now our High availability architecture is created.</p><p>Thank you all</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55fe8dd1e535" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hybrid Architecture using AWS and Minikube]]></title>
            <link>https://dineshasija.medium.com/hybrid-architecture-using-aws-and-minikube-a748fe4ef1a8?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a748fe4ef1a8</guid>
            <category><![CDATA[hybrid-cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[minikube]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Sat, 31 Oct 2020 04:17:31 GMT</pubDate>
            <atom:updated>2020-10-31T04:17:31.045Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*YWx6H9VLotH_Njd7L6-ttQ.png" /><figcaption><strong>Hybrid Architecture using AWS and Minikube</strong></figcaption></figure><p>In this I Deploy a <strong>web application </strong>and I deployed <strong>frontend(Wordpress) </strong>on minikube and <strong>backend(MySQL)</strong> on AWS</p><h3>Prerequisite</h3><ol><li><em>You Should have one AWS Account.</em></li><li><em>You Should have minikube setup.</em></li></ol><h3>Problem Statement</h3><p><em>Deploy the Wordpress application on Kubernetes and AWS using terraform including the following steps;</em></p><p><em>1. Write an Infrastructure as code using terraform, which automatically deploy the Wordpress application</em></p><p><em>2. On AWS, use RDS service for the relational database for Wordpress application.</em></p><p><em>3. Deploy the Wordpress as a container either on top of Minikube or EKS or Fargate service on AWS</em></p><p><em>4. The Wordpress application should be accessible from the public world if deployed on AWS or through workstation if deployed on Minikube.</em></p><p><em>Try each step first manually and write Terraform code for the same to have a proper understanding of workflow of task</em></p><h3>Lets Start</h3><h4>First We write code to deploy our <strong>Database </strong>on <strong>AWS RDS</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfcd0ee0c6f59c433b7beee600ca02c2/href">https://medium.com/media/cfcd0ee0c6f59c433b7beee600ca02c2/href</a></iframe><h4>Now We Write Code to Deploy Our Frontend</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9da72895272694723eb888eedecb5c6b/href">https://medium.com/media/9da72895272694723eb888eedecb5c6b/href</a></iframe><h4>Now We Write Code to Expose Our Frontend Deployement</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39993b9722e3c4ba10b126e6bc0dcf03/href">https://medium.com/media/39993b9722e3c4ba10b126e6bc0dcf03/href</a></iframe><p><strong>First Start minikube</strong></p><blockquote>minikube start</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9Uo3rT1RKgcIPki_SNlKw.png" /></figure><h4>To initalize the provider and required modules in terraform run this command</h4><blockquote>terraform init</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cX15uBsyF8HqIWEeMJm-HA.png" /></figure><h4>After the successful initialization to deploy the whole infrastructure run this command</h4><blockquote>terraform apply --auto-approve</blockquote><p>The Whole infrastructure we design above will deploy just by running this command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13wSqFrWgxlNEMfrb1EqGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HzmGzoqf3ePTVOXVlXupCQ.png" /></figure><h4>Whole Infrastructure is deployed successfully now</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2sXECo9YbqhxyGvlXI9ug.png" /></figure><h4>We can destroy the whole infrastructure by just one command</h4><blockquote>terraform destroy --auto-approve</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJZTsEQrahm8_g7dtA-15A.png" /></figure><h4>Wait for some time and the whole infrastructure will destroy</h4><h3>Thanks for Reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a748fe4ef1a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hybrid Setup using GCP and AWS]]></title>
            <link>https://dineshasija.medium.com/hybrid-setup-using-gcp-and-aws-6edaf3d4b0e6?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6edaf3d4b0e6</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[tasks]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[hybrid-cloud]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 07:32:16 GMT</pubDate>
            <atom:updated>2020-10-09T08:30:18.788Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XyyqSufMoYT_rr9XX5W1ZA.png" /></figure><h3>GCP Workshop Task</h3><ol><li>In GCP <strong>(Google Cloud Platform) </strong>Deploy an GKE Cluster</li><li>In that Cluster Deployed Wordpress as a Frontend App</li><li>In AWS <strong>(Amazon Web Services) </strong>using RDS created a MySQL database</li><li>Connect Wordpress which is on GCP and Database which is on AWS ,then an hybrid set up is created</li></ol><h4>Creating a GKE Cluster</h4><ol><li>Open <strong>Google Console</strong> and sign up with your email id</li><li>Open <strong>Navigation Drawer</strong> and click on <strong>Kubernetes Engine</strong></li><li>Click on <strong>Create Cluster</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDesVCKlGGoqUD5CogvMzw.png" /></figure><p>4. Give name of cluster , channel, compute zone and version click on create and wait for some time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fu_xbvFd6s_xXyTcEoOpEQ.png" /></figure><p>5. See the above image our cluster is created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ukfu1_d5FD5YoftbnccBXg.png" /></figure><p>6. Cluster also created 3 VM Instances</p><h4>Deploy Wordpress On GKE</h4><ol><li>Open Cloud Shell</li><li>Press and Enter and then Click On Authorize</li><li><strong>kubectl create deployment wp-pod — image-wordpress</strong> (use this command to deploy wordpress as a pod)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1HbE4qDmBelAPrxRADCcg.png" /></figure><p>4. <strong>kubectl expose deployment wp-pod --type=LoadBalancer --port 80(</strong>use this command to expose that pod so we can access the wordpress<strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycmegJ8ydZCFjJeYAx2PJw.png" /></figure><p>5. Pod is exposed now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PazoNWl235ukJM3etoNWRw.png" /></figure><h4><strong>Database On AWS</strong></h4><ol><li>Open <strong>AWS Console</strong> and <strong>login</strong> With your <strong>AWS A/c</strong></li><li>In <strong>Services </strong>section Select <strong>RDS</strong></li><li>Select <strong>Easy Create</strong></li><li>Select <strong>MySQL</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuhVV9DODFWd77WV0eZr0w.png" /></figure><p>5. Select <strong>Free Tier</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQB4wf-LoVfEF41KQz925Q.png" /></figure><p>6. Give <strong>Database Name</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBBUYfGqpz6Z_6yOHMZj7Q.png" /></figure><p>7. Give <strong>Master Password </strong>and <strong>Confirm Master Password</strong> Once Again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rICf1hu9aQIStKRA2AJBRw.png" /></figure><p>8. Click on <strong>Create Database</strong> and <strong>wait for some time</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cYhZs1ekvMWw56oY2pd-TQ.png" /></figure><p>9. MySQL Database is created on AWS</p><h4>Connect Wordpress <strong>(On GCP) and Database (On AWS)</strong></h4><ol><li>Using the <strong>External IP</strong> of <strong>Wordpress Pod </strong>to launch wordpress</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ub8oFvNevDcQki7sy-9xNQ.png" /></figure><p>2. Select <strong>Language</strong></p><p>3. Give <strong>Database Name </strong>, <strong>Username , Password , Host (Endpoint in RDS)<br>Click on submit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B39TeHnzqyFlQpSxo7o4Kw.png" /></figure><h3>First Blog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*bQip9K0SQqlvb6M6L8psqg.png" /></figure><h4>Now our Hybrid Setup is Done</h4><h3>Thank your for reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6edaf3d4b0e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big Data , Hadoop and some facts]]></title>
            <link>https://dineshasija.medium.com/big-data-hadoop-and-some-facts-d50ab8ddfbd8?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d50ab8ddfbd8</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Thu, 17 Sep 2020 09:03:00 GMT</pubDate>
            <atom:updated>2020-09-17T09:03:00.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToZm3oj5HCyykUe1mTMsjg.jpeg" /><figcaption>a</figcaption></figure><h3>Big Data , Hadoop and some facts</h3><h3><strong>What is Big Data?</strong></h3><p>Big Data is also <strong>data</strong> but with a <strong>huge size</strong>. Big Data is a term used to describe a collection of data that is huge in volume and yet growing exponentially with time. In short such data is so large and complex that none of the traditional data management tools are able to store it or process it efficiently.</p><h3>Some Examples of Big Data</h3><p>1. The <strong>New York Stock Exchange</strong> generates about <strong><em>one terabyte</em></strong> of new trade data per day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h63du0OdtEnIbUb-f1ktBQ.png" /></figure><p><strong>2. Social Media</strong></p><p>The statistic shows that <strong><em>500+terabytes</em></strong> of new data get ingested into the databases of social media site <strong>Facebook</strong>, every day. This data is mainly generated in terms of photo and video uploads, message exchanges, putting comments etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dk0kZDRzkd6hVtvus-Qa1A.jpeg" /></figure><p><strong>3. Jet Engine</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*EcAYIAO_fysW3WLt0vNlNQ.jpeg" /></figure><p>A single <strong>Jet engine</strong> can generate <strong><em>10+terabytes</em></strong> of data in <strong><em>30 minutes</em></strong> of flight time. With many thousand flights per day, generation of data reaches up to many <strong><em>Petabytes.</em></strong></p><h3>Characterstics of Big Data</h3><ol><li><strong>Volume: </strong>The name Big Data itself is related to a size which is enormous. Size of data plays a very crucial role in determining value out of data. Also, whether a particular data can actually be considered as a Big Data or not, is dependent upon the volume of data. Hence, <strong>‘Volume’</strong> is one characteristic which needs to be considered while dealing with Big Data.</li><li><strong>Variety: </strong>The next aspect of Big Data is its <strong>variety</strong>.</li></ol><p>Variety refers to heterogeneous sources and the nature of data, both structured and unstructured. During earlier days, spreadsheets and databases were the only sources of data considered by most of the applications. Nowadays, data in the form of emails, photos, videos, monitoring devices, PDFs, audio, etc. are also being considered in the analysis applications. This variety of unstructured data poses certain issues for storage, mining and analyzing data.</p><p><strong>3. Velocity:</strong> The term <strong>‘velocity’</strong> refers to the speed of generation of data. How fast the data is generated and processed to meet the demands, determines real potential in the data.</p><p>Big Data Velocity deals with the speed at which data flows in from sources like business processes, application logs, networks, and social media sites, sensors,<a href="https://www.guru99.com/mobile-testing.html"> Mobile </a>devices, etc. The flow of data is massive and continuous.</p><p><strong>4. Variablity: </strong>This refers to the inconsistency which can be shown by the data at times, thus hampering the process of being able to handle and manage the data effectively.</p><h3>What is Hadoop?</h3><p><strong>Apache Hadoop</strong> is a <strong>collection of open-source software </strong>utilities that facilitate using a network of many computers to solve problems involving massive amounts of data and computation. It provides a <strong>software framework </strong>for <strong>distributed storage</strong> and <strong>processing</strong> of big data using the <strong>MapReduce programming model</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*26qG6J_yP3bA4-eFFEWG4w.jpeg" /></figure><h3>How Facebook is Using Big Data?</h3><p>Have you ever seen one of the <strong>videos on Facebook </strong>that shows a <strong>“flashback” </strong>of posts, likes, or images — like the ones you might see on your birthday or on the anniversary of becoming friends with someone? If so, you have seen examples of how <strong>Facebook uses Big Data.</strong></p><p>According to a survey report <strong>“companies with more than 1,000 employees already had more than 200 terabytes of data of their customer’s lives stored. Consider adding that startling amount of stored data to the rapid growth of data provided to social media platforms since then. There are trillions of tweets, billions of Facebook likes, and other social media sites like Snapchat, Instagram, and Pinterest are only adding to this social media data deluge.”</strong></p><p>As per my knowledge i can say <strong>“The convergence of social media and big data gives birth to a whole new level of technology.”</strong></p><h3>Distributed Storage</h3><p><em>In Big Data, we deal with multiple clusters or we can say computers often. … The whole idea of Big Data is to distribute data across multiple clusters and to make use of computing power of each cluster (node) to process information. Distributed file system is a system that can handle accessing data across multiple clusters (nodes).<br></em><strong><em>Distributed File System</em></strong></p><p><em>A distributed file system (DFS) is a file system with data stored on a server. The data is accessed and processed as if it was stored on the local client machine. The DFS makes it convenient to share information and files among users on a network in a controlled and authorized way. The server allows the client users to share files and store data just like they are storing the information locally. However, the servers have full control over the data and give access control to the clients.</em></p><h3>Let me tell you some Facts</h3><ol><li><strong><em>Every 60 seconds</em></strong><em>, </em><strong><em>136,000 photo</em></strong><em>s are uploaded, </em><strong><em>510,000 comments</em></strong><em> are posted, and </em><strong><em>293,000 status</em></strong><em> updates are posted. That is a LOT of data.</em></li><li><strong><em>Every 2 days</em></strong><em> we create as much </em><strong><em>data</em></strong><em> as we did from the beginning of time until 2003.</em></li><li><strong><em>Google</em></strong><em> now </em><strong><em>processes over 40,000 search queries every second on average </em></strong><em>which translates to over 3.5 billion searches per day and 1.2 trillion searches per year worldwide</em></li></ol><p><em>4. </em><strong><em>big data</em></strong><em> and analytics industry in </em><strong><em>India</em></strong><em> is expected to experience 8X growth hitting $16 billion by 2025 from the current $2 billion,</em></p><p><em>5. In the </em><strong><em>next seven years</em></strong><em>, the </em><strong><em>Indian analytics industry</em></strong><em> will expand its horizons further and </em><strong><em>demand more analytics professionals</em></strong></p><p><strong>Thanks for Reading</strong></p><p><strong>Hope you all guys like it,, Give a clap</strong></p><p><strong>Connect with me on linkedin</strong></p><p><a href="https://www.linkedin.com/in/dinesh-asija-25a8b8187?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3BuFLj%2F7UDQz6tMlpdT2sZiA%3D%3D">Dinesh Asija - Specialist in Python with Data Science and Flask Volunteer - LinuxWorld Informatics Pvt Ltd | LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d50ab8ddfbd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wordpress software with MySQL with Bash Host on AWS using Terraform]]></title>
            <link>https://dineshasija.medium.com/wordpress-software-with-mysql-with-bash-host-on-aws-using-terraform-9b3ec1d87160?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b3ec1d87160</guid>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 08:18:23 GMT</pubDate>
            <atom:updated>2020-08-29T12:49:08.344Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*h8sPk_i4TY5hpVTTdnvS-Q.jpeg" /></figure><h3>Task-4 Synopsis</h3><p><strong>Perform task-3 with an additional feature to be added that is NAT Gateway to provide the internet access to instances running in the private subnet.</strong></p><p><strong>Performing the following steps:</strong></p><p><strong>1. Write an Infrastructure as code using terraform, which automatically create a VPC.</strong></p><p><strong>2. In that VPC we have to create 2 subnets:</strong></p><p><strong>1. public subnet [ Accessible for Public World! ]</strong></p><p><strong>2. private subnet [ Restricted for Public World! ]</strong></p><p><strong>3. Create a public facing internet gateway for connect our VPC/Network to the internet world and attach this gateway to our VPC.</strong></p><p><strong>4. Create a routing table for Internet gateway so that instance can connect to outside world, update and associate it with public subnet.</strong></p><p><strong>5. Create a NAT gateway for connect our VPC/Network to the internet world and attach this gateway to our VPC in the public network</strong></p><p><strong>6. Update the routing table of the private subnet, so that to access the internet it uses the nat gateway created in the public subnet</strong></p><p><strong>7. Launch an ec2 instance which has Wordpress setup already having the security group allowing port 80 sothat our client can connect to our wordpress site. Also attach the key to instance for further login into it.</strong></p><p><strong>8. Launch an ec2 instance which has MYSQL setup already with security group allowing port 3306 in private subnet so that our wordpress vm can connect with the same. Also attach the key with the same.</strong></p><h3>Lets Start</h3><ol><li>Create a directory to save all files in a separate workspace</li><li><strong>mkdir &lt;dirname&gt;</strong></li><li>now create and save all your files in this workspace.</li><li>Create a terraform file i use VS code as editor you can use anyone you want.</li><li>First we have to set one AWS profile.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcosdpyNpeEKTghTQ8AUbg.png" /></figure><p>6. We will use aws as a provider. In provider we have to give our region and profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*aoLpE6vVr5NKgP2b4WKsiA.png" /></figure><p>7.Now we will create a key for this we will use <strong>tls_priavate_key</strong> resource and provide RSA algorithm in key and use aws key pair resource to generate the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*7U2-dk2yVqeWJ5PcuvzEmw.png" /></figure><p>8. We use local file resource to save the key in our local system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*aqPlrKKTg1rQ2il2Kb3rDA.png" /></figure><p>9. Now we will create on vpc , VPC is a Network as a service in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*SR0U-uk-ydP-VGC7QQDOiQ.png" /></figure><p>If you have look into my task 3 till this end all the implementation is same</p><p>10. Now we will create 3 security groups one for wordpress, one for bashin host and one for MySQL</p><p>11. First we create Security group for wordpress and alloow ingress for http=80,ssh=22, and https=443</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*hMng8XHtoxmkJQoI3hiTPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*Ht-sn-wSZ77VTW0DTrBAWQ.png" /></figure><p>12. Now we will create one security group for bash host and in ingress allow ssh port number 22</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*90L3kJLYmIS2LnKfYFjCNg.png" /></figure><p>14. Now we will create one security group for mysql. In whch we allow ingress from mysql port number 3306 and ssh traffic (ssh port no. 22)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*EQIy-nV6fjUGNDfFIX4PtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*LUjinqc1FixS1c2PGVvrHA.png" /></figure><p>15. Now we create a public subnet which is used for wordpress so that our client can access wordpress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*8Ef1Oa9YrpNRF79pQn5WWg.png" /></figure><p>16. Now we will create one internet gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*NR8PQ1Hj67eI4dsr2DmIyw.png" /></figure><p>17. Internet Gateway require some route to be created we will attach this gateway to VPC we created above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*b2P2vz9SHsuaidXsSzNO_w.png" /></figure><p>18. Now we will add this in route table by subnet and route table id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*UbWrH_xMZwAVS9y8lvdtqg.png" /></figure><p>19. Now we will create one private subnet. which we used for mysql</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*k3ST8OWQgWOSrl-Ma7UFkw.png" /></figure><p>20. Now we will create one elastic IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*baoBbPG4frFL7f86n_zlrA.png" /></figure><p>21. Now we will create on nat gatway to access mysql.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*Ao_iV66Q49XOm431OeVs5A.png" /></figure><p>22. We have to create route for nat gateway like we create for internet gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*I1qsgxfTk3_LMU8sfLgvGw.png" /></figure><p>23. Now we will add use route table if and subnet if to assosiate it in the toute table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*hTmAv5ANrlkst3lLxgUzyg.png" /></figure><p>24. Now we will create instance of wordpress instance , we use public subnet , key and vpc which we created above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*K7XJDt4d7atye5KSlr4MKw.png" /></figure><p>25. Now will create bash in host and use public subnet,key, and security group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*z_YmYX90iujDni8Pd38t5A.png" /></figure><p>26. Now we will create mysql instance use private subnet and security group which we created for my sql.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*KcAAd-vWq8SWzDL3ZjGnqQ.png" /></figure><p>Save the file.</p><ol><li><strong>terraform init </strong>to initialize the modules and download some more thing like providor tools.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gHn7b806crIorD2008Z-nw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JoWXzdi3UrAhgjybcwIntw.png" /></figure><p>Initialization complete</p><p>2. Now we will execute our code by <strong>terraform apply</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWp4yGVve9fmCDBrXiKpDA.png" /></figure><p>Press <strong>yes </strong>to execute the code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*teGn880S80sbyl1fPefatg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhTBNkyNvW8LVcrq9LYOzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMOzjTv3uzammDcNn5841Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ql78tcnCSIw2bfBg_aUxpg.png" /></figure><p><strong>Now our whole infrastructure is created</strong></p><h4>Ec2 Instances created</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhdphZ4Om0Ir7dcGMkxYYw.png" /></figure><p><strong>Elastic IP Created</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9fUw6qizPXsuXHQQaqt_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F230Skfrx3sCp12mC0GaZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYJIlNdp6aDPgVuOHPuj8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpdfWGAY05XBAusOmdIeZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8sOZf1x-JODJk6AMY_gOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HdW_C8_WSQblx2u69uZaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2n5WpMcChk_-DNascPsxmw.png" /></figure><p><strong>terraform destroy to delete the whole infrastructure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMtLCNSOOsbjxGFUDaHV_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fIpCG-ddMWzVSh__zU1y4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfUOxbDAAoEeDimck5vr4A.png" /></figure><h3>Thank you for reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b3ec1d87160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wordpress software with dedicated database server on AWS using Terraform]]></title>
            <link>https://dineshasija.medium.com/wordpress-software-with-dedicated-database-server-on-aws-using-terraform-976a977f529b?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/976a977f529b</guid>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 08:54:46 GMT</pubDate>
            <atom:updated>2020-08-26T10:32:04.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*h8sPk_i4TY5hpVTTdnvS-Q.jpeg" /></figure><h3>Task-3 Synopsis</h3><p><strong>Statement: We have to create a web portal for our company with all the security as much as possible.</strong></p><p><strong>So, we use Wordpress software with dedicated database server.</strong></p><p><strong>Database should not be accessible from the outside world for security purposes.</strong></p><p><strong>We only need to public the WordPress to clients.</strong></p><p><strong>So here are the steps for proper understanding!</strong></p><p><strong>Steps:</strong></p><p><strong>1) Write a Infrastructure as code using terraform, which automatically create a VPC.</strong></p><p><strong>2) In that VPC we have to create 2 subnets:</strong></p><p><strong>a) public subnet [ Accessible for Public World! ]</strong></p><p><strong>b) private subnet [ Restricted for Public World! ]</strong></p><p><strong>3) Create a public facing internet gateway for connect our VPC/Network to the internet world and attach this gateway to our VPC.</strong></p><p><strong>4) Create a routing table for Internet gateway so that instance can connect to outside world, update and associate it with public subnet.</strong></p><p><strong>5) Launch an ec2 instance which has Wordpress setup already having the security group allowing port 80 so that our client can connect to our wordpress site.</strong></p><p><strong>Also attach the key to instance for further login into it.</strong></p><p><strong>6) Launch an ec2 instance which has MYSQL setup already with security group allowing port 3306 in private subnet so that our wordpress vm can connect with the same.</strong></p><p><strong>Also attach the key with the same.</strong></p><h3>Lets Start</h3><ol><li>First we make a directory to save our files and data in a separate workspace<br><strong>mkdir &lt;dirname&gt;</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRDucJPLph88DtS_CU72oQ.png" /></figure><p>2. Now we configure our aws profile using below command<br><strong>aws configure --profile &lt;profilename&gt;</strong></p><p>Then we have to provide our Access key, Secret key,region and output format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0ZK9tDR-B6BJrXc2burhQ.png" /></figure><p>3. Now we will create a terraform file <br><strong>notepad filename.tf <br></strong>or you can use anytext editor</p><p>4. first we have to set a provider we will use aws as a provider. In provider we have to give our region and profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*kiRg_c_P2tLu4yAs1zdq3w.png" /></figure><p>5. Now we will create a key for this we will use <strong>tls_priavate_key</strong> resource and provide RSA algorithm in key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*eI46a2QMCBT5f9gOqlM2ww.png" /></figure><p>6. we will use <strong>local_file </strong>resource to save the key in our local system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*ZFWN3f_IKF_tMuM_B7uFEg.png" /></figure><p>7. Now we will create one VPC named myownvpc you can give any name yiou want</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*ql9eM81V8Y-C3Gz2PSWxOw.png" /></figure><p>8. Now we will create a security group which allow ingress traffic from port no. 22,3306,80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*EM3imxuH660sVc_h6an7Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*KSqQDkiPNIKcCyfUdXB3Og.png" /></figure><p>9. Now we will create two subnets one for wordpress instance and one for mysql instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*gzYFo_uO3G6-NfTKo8iDmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*N9hj2Ba1mqbmLkb5IUJhnQ.png" /></figure><p>10. Now we will create one internet gateway , for creating internet gateway we require resource named aws_internet_gateway<br>in this we have to give our vpc id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*H9h0onok01ZgYtE9aRjcug.png" /></figure><p>11. Now we will create one route table which manages route for instances</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*jUA0DnUkMCrxz6-Pj8QmXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*SDRvY6uuqC0HpWxS6aBPRA.png" /></figure><p>12. Now we will create two EC2 instances one for wordpress and one for mysql in different subnets</p><p><strong>wordpress instance</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*EbaQXpo4IOvSnQVwmo5h-w.png" /></figure><p><strong>MySql instance</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*nJ3tu8lAkOfFlTnhWq5uMA.png" /></figure><p>Now our code is done we will save our file and use terraform to create the infrastructure</p><p>13. First we use <strong>terraform init </strong>to initialize the modules</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBigNM0RKVX2DQ4vDpN4Qg.png" /></figure><p>After this we use</p><p>14. to run or create this infrastructure we use <strong>terraform apply</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1IfoRDU2FVtT3BXS5SmaFA.png" /></figure><p><strong>type yes to approve</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jdgmk4u4-3fmoaXq6iFMmQ.png" /></figure><h3><strong>Outputs</strong></h3><h3><strong>Instances Created</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G2RK_EqxPA8EkOdeJwujeQ.png" /></figure><h3>VPC Created</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kznP4MFQestdwbn80XNkfQ.png" /></figure><h3>Subnets Created</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6GhVdy5xxIP3LtpuP8SRA.png" /></figure><h3>Route Table Craeted</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTAFQ4rShgPO0cX-MX94ZA.png" /></figure><h3>Internet Gateway Created</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G5FJS8HGUr7RsJo_Iw70rw.png" /></figure><h3>Wordpress Working</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*edmxKWUbd818_bVrqPsJzQ.png" /></figure><p>15. Now in just one command we will destroy this infrastructure</p><p><strong>terraform destroy --auto-approve</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zI9WvTpgxHOOsp-r_AKQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKknUI1EfW2EssX4mbconw.png" /></figure><h3>Thankyou for reading</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=976a977f529b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure AWS EC2 Instance and Webserver Using Ansible]]></title>
            <link>https://dineshasija.medium.com/configure-aws-ec2-instance-and-webserver-using-ansible-8ee49d2f56d2?source=rss-a0f18d8339c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ee49d2f56d2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Dinesh Asija]]></dc:creator>
            <pubDate>Sun, 23 Aug 2020 12:27:14 GMT</pubDate>
            <atom:updated>2020-08-23T12:27:14.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*SF5aEcVqcNNMiiJT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SgjeDQmt7FvTWwXiXEY9mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gnYGa6w5FogAC4RaPExjAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QX_nMzPH0SuAQxLhPogmQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QX_nMzPH0SuAQxLhPogmQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KE7ir_pQRtuUWMLiEtcAJg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ee49d2f56d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>