<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Feyisayo Famakinde</title>
    <description>The latest articles on DEV Community by Feyisayo Famakinde (@tonyette).</description>
    <link>https://dev.to/tonyette</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F605304%2F89f9bbfa-84fd-478e-9eb2-d5793d3d6274.JPG</url>
      <title>DEV Community: Feyisayo Famakinde</title>
      <link>https://dev.to/tonyette</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tonyette"/>
    <language>en</language>
    <item>
      <title>How to create a Linux VM Instance with Nginx in GCP with the Cloud SDK </title>
      <dc:creator>Feyisayo Famakinde</dc:creator>
      <pubDate>Thu, 03 Jun 2021 19:57:10 +0000</pubDate>
      <link>https://dev.to/tonyette/how-to-create-a-linux-vm-instance-with-nginx-in-gcp-with-the-cloud-sdk-3j01</link>
      <guid>https://dev.to/tonyette/how-to-create-a-linux-vm-instance-with-nginx-in-gcp-with-the-cloud-sdk-3j01</guid>
      <description>&lt;p&gt;My first interaction with the Google Cloud Platform was through its graphical Console: easy to use and navigate. Gradually I became acquainted with the Shell available within the GCP console but nothing feels like being able to connect to the cloud resources directly from the command-line interface of your local computer. So I decide to document how to create the most basic of the cloud resources available on the GCP platform which is the VM instance. This article shows how to create a Linux VM in the Google Cloud platform with the Cloud SDK which is the gcloud command line tool that helps you connect with Google Cloud products and services. In this tutorial we will be creating an Ubuntu 18.04 Linux machine in one of the GCP zones located in the US central region and  then install an Nginx web-server on it. I will be creating this from my local machine which is a WSL Ubuntu distribution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;A Google cloud platform account- You can create one &lt;a href="https://console.cloud.google.com/freetrial" rel="noopener noreferrer"&gt;Here&lt;/a&gt; at a free trial of $300 valid for 90-days and make sure you set up a billing account and project in the console by providing your card details- you don't get charged once the free trial is activated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Basic Linux knowledge.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  STEPS
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://dev.todownload-the-sdk-kit"&gt;Download the SDK kit&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;{Install SDK} (install-SDK).&lt;/li&gt;
&lt;li&gt;{Create firewall rule} (create-firewall-rule)&lt;/li&gt;
&lt;li&gt;Create VM instance.&lt;/li&gt;
&lt;li&gt;Install Nginx.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Download the SDK kit &lt;a&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Google has provided this kit for Linux, MacOS and Windows operating systems and you can find them &lt;a href="https://cloud.google.com/sdk/docs/quickstart" rel="noopener noreferrer"&gt;here&lt;/a&gt; download based on the operating system of your local system. Since I use the Ubuntu distro I will be downloading the Debian ubuntu package. Use the code below to add the cloud SDK distribution URI as a package source. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Import the Google cloud public key so you have access to the package &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
  
  
  Install SDK &lt;a&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Then update your machine and download the SDK package&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install google-cloud-sdk


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud init


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;to initialize gcloud.&lt;/p&gt;

&lt;p&gt;You will get prompted to configure gcloud; follow the instructions and go to the link provided to go through the authentication and authorization process; &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the browser, fill in  the email you used for your account and project setup then copy the authentication code provided and paste in your terminal.&lt;/li&gt;
&lt;li&gt;At account creation and billing setup you probably created a project or the project was automatically setup for you select this project in the terminal to get into the cloud environment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before we start our VM creation it is important that we follow some best practices for an effective process. First we need to set our project ID as an environment variable to avoid errors. You need to get your project ID before we continue get the ID by running&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud projects list


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You should see something similar to this showing your project-id and project-name&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fple9eushekhydkw37koe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fple9eushekhydkw37koe.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
copy your project ID and let's save it in an env variable&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

export (YOUR PROJECT_ID)=PROJECT_ID


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;confirm it was saved by running&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

echo $PROJECT_ID


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command should show your project id as a response.&lt;/p&gt;

&lt;h1&gt;
  
  
  Create firewall rule &lt;a&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Because Google cloud has all ingress traffic blocked except new firewall rules are created since we will be creating a VM that will host the Nginx server which runs on port 80 on http it is vital that we create a firewall rule that will allow traffic on port 80 for the default network associated with our instance. You can do this by running. Be sure to replace (firewall-rule-id) with your choice of ID.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud compute firewall rules create (firewall-rule-id) --action=ALLOW --destination=INGRESS --rules=http:80 --target-tags=http


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;confirm that the firewall rule was created by running&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud compute firewall-instances list


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You should see the created firewall-rule in the list.&lt;/p&gt;

&lt;h1&gt;
  
  
  Create VM Instance &lt;a&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Creating an instance in compute engine takes certain flags such as the VM location, the machine type, image, disk size and network.&lt;br&gt;
The location is where the VM will be it is important to consider the target ingress traffic for the VM here will your visitors be coming from somewhere close to any of google's point of service. &lt;br&gt;
     As at the time of this article writing there are 76 zones available, you can find where they are &lt;a href="https://cloud.google.com/about/locations" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;br&gt;
*The machine type is the processor size.&lt;br&gt;
*Image refers to your choice of operating system.&lt;br&gt;
*Network is the virtual private network available in your project, every project created in gcp comes with a default network that has 27 subnets.&lt;/p&gt;

&lt;p&gt;We will be creating an instance located in the us-central1-f zone with a n1-standard-2 machine type and a debian image within our default network and a default disk size of 10GB. &lt;/p&gt;

&lt;p&gt;Create the VM instance with the command and replacing (instance-id) with your choice of instance ID&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud compute instances create (instance-id) --machine-type=n1-standard-1 --zone=us-central1-f --image-project=debian-cloud --image=debian-9-stretch-v20190213 --subnet=default --tags=http


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Confirm that your instance was created with the command below. Ensure you copy out the external IP created because we will be using it soon.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud compute-instances list


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
  
  
  Install Nginx &lt;a&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Now we install  the Nginx web server, since we are working from our local terminal it is time to ssh into our VM's terminal. We do this by running&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

gcloud compute ssh (instance-id)


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This works because gcloud propagates an ssh key automatically by updating it to the meta-data of your instance and provisioning it to your local system's too only because you have IAM permissions to do so.&lt;/p&gt;

&lt;p&gt;Now we should be inside the terminal of our vm instance,you can confirm this with the terminal name change. If you have confirmed terminal change you can now install Nginx, you do this by running&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo apt-get update
sudo apt install nginx -y


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Confirm that nginx started by visiting the external IP of the instance you copied previously&lt;br&gt;
 **&lt;a href="HTTP://YOUR-EXTERNAL-IP:80"&gt;HTTP://YOUR-EXTERNAL-IP:80&lt;/a&gt;&lt;br&gt;
You should see the Nginx default homepage.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0sjnwro0furowthsif7u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0sjnwro0furowthsif7u.png" alt="Nginx-default-home-page"&gt;&lt;/a&gt;&lt;br&gt;
That is all, I hope this was simple enough to understand. If you had any problem while following any of the steps above please do let me know.&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>cloudskills</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>How the Google IT Support Course helped with my Cloud/DevOps Career</title>
      <dc:creator>Feyisayo Famakinde</dc:creator>
      <pubDate>Tue, 30 Mar 2021 20:34:38 +0000</pubDate>
      <link>https://dev.to/tonyette/how-the-google-it-support-course-helped-with-my-cloud-devops-career-1p9k</link>
      <guid>https://dev.to/tonyette/how-the-google-it-support-course-helped-with-my-cloud-devops-career-1p9k</guid>
      <description>&lt;p&gt;Cloud Computing. Don’t let the name scare you Cloud computing is similar to every course or subject that you have been a beginner in; you heard it for the first time, got enrolled and started learning and someday you discovered that you now know a lot about it. It is all knowledge acquisition you dedicate time to it and soon you discover you know how it works. In my journey of less than one year I have had people ask me how to get into cloud computing, So I decided to write a post on it to show you how I got started but today without a traditional technical background.&lt;br&gt;
    To start I had always heard about Cloud Computing but I didn't know how it worked. My journey started in May 2020 when I was stuck at home with no job due to the pandemic and needed to do something with my time before then I had always been interested in a career in technology because of the opportunities it provides and the peculiar need for development within the industry so I thought to myself why not start now. After messaging a friend and telling him I needed to learn something tech-related that isn’t software development I got a link for the GADS2020(Google Africa Development Scholarship) and I picked the Cloud computing path. We were given a free Pluralsight subscription plan and told to engage it, a course by Dan Appleman stayed with me; he explained that you needed to gain foundational knowledge to be better at what you do because it gives you an edge in understanding how the technology you use works. I was okay with binging videos up to a point until everything became difficult when I started encountering words like CLI Commands, Servers and Clients I knew I needed to do something so I went looking for courses that could help me then I stumbled on the Google IT support professional course on Coursera I had to apply for financial aid which I got after 15 days.&lt;br&gt;
   This course comprises of five in-depth programs that cuts across building a computer, customer service, networking, operating systems and IT security. It says on the website that you can begin your career after completing the course and I agree with that; the tutors explained in the simplest words, additional resources were provided to aid understanding and the graded tests helps you identify your weaknesses and strengths. I completed the course in six months because I had to shuffle it with my GADS program during the time I engaged with it I understood technology better and it also helped with developing my problem-solving abilities. I wasn’t only binge-watching whenever I watched my cloud computing videos but I knew to check for resources whenever I need help with understanding anything.&lt;br&gt;
The course made everything easier for my novice self as I later qualified for the ACE certification token offered by GADS2020 to then pass my ACE certification exam. &lt;br&gt;
I wrote this post to encourage everyone out there especially females that regardless of your background a space is available for you in the technology (technical or non-technical) You only need to bring a determination to learn, learning to understand most importantly you can take it slowly or as fast as you can. It took me up to a year but yours could be different you might not always get it but endeavour to push forward.&lt;br&gt;
Google is currently offering the IT support program in a scholarship scheme in Africa presently. You can register here [&lt;a href="https://africa.googleblog.com/2021/03/announcing-new-google-career.html"&gt;https://africa.googleblog.com/2021/03/announcing-new-google-career.html&lt;/a&gt;] or on Coursera[&lt;a href="https://www.coursera.org/professional-certificates/google-it-support"&gt;https://www.coursera.org/professional-certificates/google-it-support&lt;/a&gt;]&lt;/p&gt;

</description>
      <category>devops</category>
      <category>career</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
