<?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: Sandipkumar Patel</title>
    <description>The latest articles on DEV Community by Sandipkumar Patel (@sam4aws).</description>
    <link>https://dev.to/sam4aws</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%2F539999%2Ff65ff202-bc8b-4919-97fe-5885b6b32c27.jpg</url>
      <title>DEV Community: Sandipkumar Patel</title>
      <link>https://dev.to/sam4aws</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sam4aws"/>
    <language>en</language>
    <item>
      <title>How to crack AWS Certifications exam &amp; Get good Opportunities</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Fri, 20 May 2022 09:11:17 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-to-crack-aws-certifications-exam-get-good-opportunities-3g95</link>
      <guid>https://dev.to/aws-builders/how-to-crack-aws-certifications-exam-get-good-opportunities-3g95</guid>
      <description>&lt;p&gt;According to my experience after trained 1000+ people from Universities, Corporates ,form different Tech communities and my 4  AWS Certifications, I have found few important &lt;strong&gt;Tips &amp;amp; Tricks&lt;/strong&gt;  for " &lt;em&gt;&lt;strong&gt;How to crack AWS Certifications exam &amp;amp; Get good Opportunities&lt;/strong&gt;&lt;/em&gt; "&lt;/p&gt;

&lt;h2&gt;
  
  
  My Observations &amp;amp; Experience
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkcpxjtl2xotxnufjl6oc.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkcpxjtl2xotxnufjl6oc.PNG" alt="Image description" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Hands-On Experience
&lt;/h2&gt;

&lt;p&gt;Try to perform hands-on as much as possible that is only key to success and to get high score in certification exam.&lt;/p&gt;

&lt;p&gt;You can &lt;a href="https://aws.amazon.com/getting-started/hands-on/?getting-started-all.sort-by=item.additionalFields.sortOrder&amp;amp;getting-started-all.sort-order=asc&amp;amp;awsf.getting-started-category=*all&amp;amp;awsf.getting-started-level=*all&amp;amp;awsf.getting-started-content-type=*all"&gt;Find the hands-on tutorials for your AWS needs&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.  AWS Whitepapers &amp;amp; Guide
&lt;/h2&gt;

&lt;p&gt;I suggest you to read at least once the  technical papers which are designed by AWS expert team on different services and best practices. This will helps you get more technical details of the services. According to your certification track read the white papers. You can &lt;a href="https://aws.amazon.com/whitepapers/?whitepapers-main.sort-by=item.additionalFields.sortDate&amp;amp;whitepapers-main.sort-order=desc&amp;amp;awsf.whitepapers-content-type=*all&amp;amp;awsf.whitepapers-tech-category=*all&amp;amp;awsf.whitepapers-industries=*all&amp;amp;awsf.whitepapers-business-category=*all&amp;amp;awsf.whitepapers-global-methodology=*all"&gt;Find Whitepapers form Here.&lt;/a&gt;   &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Troubleshoot
&lt;/h2&gt;

&lt;p&gt;Troubleshoot by your own with whatever you have learned from hands-on &amp;amp; theory sessions. Try to solve problems &amp;amp; apply what you have understood. &lt;/p&gt;

&lt;h2&gt;
  
  
  4. How to attempt the exam questions?
&lt;/h2&gt;

&lt;p&gt;There are two type of questions basically you have in the exam&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feicouxc8k1s1opvwpt9i.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feicouxc8k1s1opvwpt9i.PNG" alt="1. Multiple choice, 2. Multiple response" width="458" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How to deal with the question is very important and for that you have to take care theses few important things like&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firstly &lt;strong&gt;read the question two times carefully&lt;/strong&gt; (especially choose 2 answers questions) &amp;amp; &lt;strong&gt;highlight or find out the keywords&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv7rpptm112kif981lgej.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv7rpptm112kif981lgej.PNG" alt="Image description" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnln1xlm6frg7esf04gux.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnln1xlm6frg7esf04gux.PNG" alt="Image description" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Secondly, try to &lt;strong&gt;attempt those questions first in which you are 100% confident&lt;/strong&gt; with your answer and &lt;strong&gt;skip or mark&lt;/strong&gt; other questions for later attempts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Thirdly now try to answers those questions that you have skipped earlier using the &lt;strong&gt;elimination method&lt;/strong&gt; of option based on Keywords &amp;amp; your understanding.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1ycmmzgemxkaenui1qm.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1ycmmzgemxkaenui1qm.PNG" alt="Image description" width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Practice exam
&lt;/h2&gt;

&lt;p&gt;Once you have done hands-on tasks &amp;amp; complete the theory part go for one Practice exam. You can find many practices exam from AWS as well as from different learning platform like &lt;a href="https://www.udemy.com/courses/search/?src=ukw&amp;amp;q=aws+exam"&gt;Udemy&lt;/a&gt;, &lt;a href="https://www.whizlabs.com/"&gt;Whizlabs&lt;/a&gt;,etc. &lt;/p&gt;

&lt;p&gt;Practice exam, you can find based on AWS Certification exams.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Complete your first practice exam&lt;/strong&gt; &amp;amp; answers the questions of first practice exam according to your knowledge from hands-on. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once you will complete the first Practice exam you will have some idea about &lt;strong&gt;which topic you need to revise again&lt;/strong&gt;. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now &lt;strong&gt;repeat only that topics&lt;/strong&gt; and go for the remaining practice exams the same way.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don’t forget to &lt;strong&gt;review the incorrect answers&lt;/strong&gt; after the practice exam.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More Details About &lt;a href="https://aws.amazon.com/certification/"&gt;AWS Certification Exams&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/t9syghvvZzY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Exam Ref Materials
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;AWS has made the following free digital training and videos available to finalize preparation for the exam: o Exam preparation ramp-up guide: &lt;a href="https://d1.awsstatic.com/training-and-certification/ramp-up_guides/Ramp-Up_Guide_CloudPractitioner.pdf"&gt;https://d1.awsstatic.com/training-and-certification/ramp-up_guides/Ramp-Up_Guide_CloudPractitioner.pdf&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Additional sample questions: &lt;br&gt;
&lt;a href="https://d1.awsstatic.com/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Sample-Questions.pdf"&gt;https://d1.awsstatic.com/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Sample-Questions.pdf&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AWS Cloud Practitioner Essentials Course: &lt;a href="https://explore.skillbuilder.aws/learn/course/external/view/elearning/134/aws-cloud-practitioner-essentials?dt=tile&amp;amp;tile=fdt"&gt;https://explore.skillbuilder.aws/learn/course/external/view/elearning/134/aws-cloud-practitioner-essentials?dt=tile&amp;amp;tile=fdt&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AWS Technical Essentials course: &lt;a href="https://explore.skillbuilder.aws/learn/course/external/view/elearning/1851/aws-technical-essentials?dt=tile&amp;amp;tile=fdt"&gt;https://explore.skillbuilder.aws/learn/course/external/view/elearning/1851/aws-technical-essentials?dt=tile&amp;amp;tile=fdt&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cloud Foundations Learning Plan: &lt;a href="https://explore.skillbuilder.aws/learn/public/learning_plan/view/82/cloud-foundations-learning-plan?dt=sec&amp;amp;sec=lp"&gt;https://explore.skillbuilder.aws/learn/public/learning_plan/view/82/cloud-foundations-learning-plan?dt=sec&amp;amp;sec=lp&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What are you Thinking about.....
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwrti26aojbhlrjxopdus.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwrti26aojbhlrjxopdus.PNG" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscertification</category>
      <category>beginners</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Create a CICD Pipeline using AWS CodeCommit, CodeBuild | Part-1</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Mon, 14 Mar 2022 05:58:57 +0000</pubDate>
      <link>https://dev.to/aws-builders/create-a-cicd-pipeline-using-aws-codecommit-codebuild-part-1-1ocl</link>
      <guid>https://dev.to/aws-builders/create-a-cicd-pipeline-using-aws-codecommit-codebuild-part-1-1ocl</guid>
      <description>&lt;h2&gt;
  
  
  Pre-requisites:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You should have an AWS account created and you should sign in as IAM-User and not the root user.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Git installed in your machine&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pipeline created during this tutorial will start execution when changes are made in code repository and search for the word “Congratulations” in the sample.html present in code repository if the word is not present the pipeline will result in &lt;strong&gt;Failed&lt;/strong&gt; status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1:
&lt;/h2&gt;

&lt;p&gt;Get the Git credentials to clone the codecommit repository in the local machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2:
&lt;/h2&gt;

&lt;p&gt;Create a CodeCommit Repository&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3:
&lt;/h2&gt;

&lt;p&gt;Clone the codecommit repository in the local machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4:
&lt;/h2&gt;

&lt;p&gt;Create any sample file and push it to the codecommit repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5:
&lt;/h2&gt;

&lt;p&gt;Create a &lt;strong&gt;CodeBuild Project&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A codebuild project is created wherein, while executing the pipeline in build stage, linux command to search for word “Congratulations” in the &lt;strong&gt;sample.html&lt;/strong&gt; file will be mentioned in the &lt;strong&gt;buildspec.yml&lt;/strong&gt; file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add the &lt;strong&gt;buildspec.yml&lt;/strong&gt; file at the root of CodeCommit repository. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 6:
&lt;/h2&gt;

&lt;p&gt;Create a pipeline, using AWS CodePipeline&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Choose &lt;strong&gt;AWS CodeCommit&lt;/strong&gt; as SourceProvider and select the Repository Name and Branch Name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For pipeline to get triggered when there is a change in the code repository, we will &lt;strong&gt;AWS CloudWatch Events&lt;/strong&gt; in &lt;strong&gt;Change Detection Options&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose the &lt;strong&gt;Build Project&lt;/strong&gt; created, in the Build Stage.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pipeline in execution when changes made in CodeCommit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Execution
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Pipeline failed since “Congratulations” word is not present in sample.html&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now we will make change in sample.html and add “Congratulations” word and pipeline will be successfully executed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/5zHO-TZ3npc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Jenkins Installation &amp; Configuration on AWS EC2 Linux instance</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Thu, 03 Mar 2022 05:05:23 +0000</pubDate>
      <link>https://dev.to/aws-builders/jenkins-installation-configuration-on-aws-ec2-linux-instance-3npl</link>
      <guid>https://dev.to/aws-builders/jenkins-installation-configuration-on-aws-ec2-linux-instance-3npl</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.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%2Fhllqt63agomv7qht45h9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fhllqt63agomv7qht45h9.PNG" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Jenkins&lt;/strong&gt; is a free and open-source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Launching an Amazon Linux EC2 instance
&lt;/h2&gt;

&lt;p&gt;[Refer video “&lt;a href="https://youtu.be/7zxwY_gXEbk" rel="noopener noreferrer"&gt;How to launch an Amazon Linux ec2 Instance&lt;/a&gt;”]&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Installation of Jenkins on EC2 Instance
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;i.&lt;/strong&gt; Run the command to update all the packages.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo yum update&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ii.&lt;/strong&gt; Check if java is installed or not using the command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;java -version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If java is not installed, install using the following command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo yum install java-1.8.0-openjdk&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;iii.&lt;/strong&gt; Now, to download the latest Jenkins package&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;**iv. **To enable the installation of the package, import the key file from Jenkins-CI:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;v.&lt;/strong&gt; Install Jenkins on the EC2 instance&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo yum install jenkins&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;vi.&lt;/strong&gt; To start the Jenkins service&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo service jenkins start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;vii.&lt;/strong&gt; Access the Jenkins server using the public DNS of the EC2 instance or public IP of the instance on port 8080.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;http://{ec2-public-dns}:8080 or &lt;a href="http://3.89.79.74:8080/" rel="noopener noreferrer"&gt;http://3.89.79.74:8080/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;viii.&lt;/strong&gt; Login using the &lt;strong&gt;username admin&lt;/strong&gt; and to get the &lt;strong&gt;initial admin password&lt;/strong&gt; execute the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo su -
cd /var/lib/jenkins/secrets/ 
cat initialAdminPassword
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;ix.&lt;/strong&gt; To stop Jenkins service&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo service jenkins stop&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/EvSFUjlC3vc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awsec2</category>
      <category>linux</category>
      <category>jenkins</category>
    </item>
    <item>
      <title>Create a CICD Pipeline using GitHub, CodeBuild, CodeDeploy Part-2</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Tue, 01 Mar 2022 06:55:57 +0000</pubDate>
      <link>https://dev.to/aws-builders/create-a-cicd-pipeline-using-github-codebuild-codedeploy-and-codepipeline-5emi</link>
      <guid>https://dev.to/aws-builders/create-a-cicd-pipeline-using-github-codebuild-codedeploy-and-codepipeline-5emi</guid>
      <description>&lt;p&gt;&lt;strong&gt;Pre-requisites:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Clone the source code required for this demo from the github.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Link&lt;/strong&gt;: &lt;a href="https://github.com/nidhi2802/code_deploy_demo" rel="noopener noreferrer"&gt;https://github.com/nidhi2802/code_deploy_demo&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Create your own github repository and push the downloaded code in your repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&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%2Flpzhautvn28rj3hoij1h.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%2Flpzhautvn28rj3hoij1h.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create required IAM Roles
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Create role for EC2 instance with permissions for CodeDeploy and S3 access to download the code.&lt;/li&gt;
&lt;li&gt;  Create a role for CodeDeploy service with permissions to access S3 and basic CodeBuild functionalities.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Create S3 bucket to store source code and build artifacts
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Step 3: Create Code Build project
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Here we will create a Build Project that will take source code from GitHub repository, and authenticate AWS CodeBuild to use code from our GitHub account.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Create Deployment Application
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  We will create a CodeDeploy application that will deploy the applications to EC2 instance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5: Launch an EC2 Instance to host the application
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Launch an EC2 instance that will have the custom role attached to it created in Step 1 and with proper tag so it can be used later.&lt;/li&gt;
&lt;li&gt;  Attach the security group with port 22 open for ssh and port 80 open to access the web application.&lt;/li&gt;
&lt;li&gt;  SSH to EC2 instance and install the CodeDeploy agent so CodeDeploy can deploy the application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Commands to install CodeDeploy agent&lt;/strong&gt;&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;h1&gt;
  
  
  Installing CodeDeploy Agent
&lt;/h1&gt;

&lt;p&gt;sudo yum update&lt;br&gt;
sudo yum install ruby&lt;/p&gt;
&lt;h1&gt;
  
  
  Download the agent (replace the region)
&lt;/h1&gt;

&lt;p&gt;wget &lt;a href="https://aws-codedeploy-eu-west-3.s3.eu-west-3.amazonaws.com/latest/install" rel="noopener noreferrer"&gt;https://aws-codedeploy-eu-west-3.s3.eu-west-3.amazonaws.com/latest/install&lt;/a&gt;&lt;br&gt;
chmod +x ./install&lt;br&gt;
sudo ./install auto&lt;br&gt;
sudo service codedeploy-agent status&lt;/p&gt;

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

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Step 6: Create Deployment Group&lt;br&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  In the CodeDeploy application created earlier in Step 4, create Deployment Group and mention the tag of EC2 instance created earlier to deploy application on instances having that specific tag.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 7: Create a CodePipeline
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  In Stage 1 we will select GitHub as cource code repository and choose the artifacts to be stored at the S3 bucket created earlier.&lt;/li&gt;
&lt;li&gt;  In Build stage we will choose the Build Project created by us.&lt;/li&gt;
&lt;li&gt;  In the Deploy stage select the deployment application and group created in the previous steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 8: Update the IAM Role for CodePipeline
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Here we will update the IAM role created by CodePipeline and attach the access policy granting full access of S3 to CodePipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s all the pipeline is created and we can make changes to github repository and check the working of pipeline.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/zTT0keHlr9w"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>cicd</category>
      <category>github</category>
    </item>
    <item>
      <title>AWS Static website using CI/CD Pipeline and S3 bucket</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Thu, 10 Feb 2022 05:09:19 +0000</pubDate>
      <link>https://dev.to/aws-builders/aws-static-website-using-cicd-pipeline-and-s3-bucket-3fak</link>
      <guid>https://dev.to/aws-builders/aws-static-website-using-cicd-pipeline-and-s3-bucket-3fak</guid>
      <description>&lt;h2&gt;
  
  
  1. Make a repo in github with simple HTML page/s.
&lt;/h2&gt;

&lt;p&gt;(&lt;a href="https://github.com/kakashi96/aws-test"&gt;sample repo&lt;/a&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Open AWS management console and search for S3 bucket. Open S3 console.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  3. Create a simple bucket
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Click on create bucket&lt;/li&gt;
&lt;li&gt;Give a unique name to the bucket and choose a region.&lt;/li&gt;
&lt;li&gt;Under &lt;em&gt;Object Ownership&lt;/em&gt; click on &lt;em&gt;ACLs enabled&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Unselect Block &lt;em&gt;all public access&lt;/em&gt; and select &lt;em&gt;I acknowledge that the current settings might result in this bucket and the objects within becoming public&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Finally click &lt;em&gt;create bucket&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Once the bucket is created on the S3 console, copy it’s ARN and paste it in the notepad.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  5. Then open the bucket and go to properties tab
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Scroll down to bottom and find “&lt;em&gt;Static website hosting&lt;/em&gt;” and click EDIT.&lt;/li&gt;
&lt;li&gt;Click Enabled.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under _Index _Document enter the name of the HTMl file that you have in your github repo.&lt;br&gt;
**     For ex:- index.html, app.html**&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click Save &lt;em&gt;Changes&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Now under the Permission tab click Edit under Bucket Policy.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  7. Click on &lt;em&gt;Policy Generator&lt;/em&gt;.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Under Select &lt;em&gt;Type of Policy&lt;/em&gt; choose &lt;em&gt;S3 Bucket Policy&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;For Principal enter * .&lt;/li&gt;
&lt;li&gt;Under &lt;em&gt;Actions _select _GetObject&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Under _ARN _paste the ARN that you copied in “Step 4”&lt;/li&gt;
&lt;li&gt;Click &lt;em&gt;Add Statement&lt;/em&gt; and then click &lt;em&gt;Generate policy&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated policy and paste it into the notepad.&lt;/li&gt;
&lt;li&gt;Close the &lt;em&gt;AWS Policy Generator&lt;/em&gt; tab.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. Paste the policy under the &lt;em&gt;Edit Bucket Policy&lt;/em&gt; tab.
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the field Resource edit it to look like the following.
2.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
…
“Resource”: “arn:aws:S3:::BUCKET-NAME/*”
…
}

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpqdel5yzdrdz8rhddks9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpqdel5yzdrdz8rhddks9.png" alt="Image description" width="502" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;em&gt;Save Changes&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  9. Now search for _CodePipeline _and open it’s console.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  10. Click on &lt;em&gt;Create Pipeline&lt;/em&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Give the pipeline a name then click on &lt;em&gt;Next&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Under Service Provider choose &lt;em&gt;Github Version 2&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Click on &lt;em&gt;Connect to GitHub&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Give a &lt;em&gt;Connection Name&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;em&gt;Install new app&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;Install&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;em&gt;Connect&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Select appropriate &lt;em&gt;Repo name and Branch name&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;em&gt;Next _and click _Skip Build Stage&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;em&gt;Deploy Provider&lt;/em&gt; select &lt;em&gt;S3 _and check the _Extract file before deploy box&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt; Click Next and click &lt;em&gt;Create Pipeline&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/rYkOAWVTsto"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>webhosting</category>
      <category>devops</category>
    </item>
    <item>
      <title>How to Integrate Jenkins with Git?</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Thu, 10 Feb 2022 04:29:44 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-to-integrate-jenkins-with-git-1ffp</link>
      <guid>https://dev.to/aws-builders/how-to-integrate-jenkins-with-git-1ffp</guid>
      <description>&lt;p&gt;In this project, we will configure a Jenkins build pipeline to build, compile, and package a small java project. The Jenkins pipeline is designed in such a way that whenever a change is pushed from the local repository to the Git repository, Jenkins will detect the change and will automatically start to build the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Create a sample java program and push it to your Git repository&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firstly, as prerequisites setup git in your local machine and create a GitHub repository.&lt;/li&gt;
&lt;li&gt;Now, you can create any sample program. I have created a sample java program that prints "Jenkins integration with Git".&lt;/li&gt;
&lt;li&gt;Now, push your code to the remote Git repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Start your Jenkins Server and install Git&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install and setup Jenkins server on Amazon Ec2 instance or your local machine. &lt;br&gt;
[Refer my previous video – Installation of Jenkins]&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, connect through SSH to your previously created Jenkins instance and &lt;strong&gt;start your Jenkins server&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo service jenkins start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run the following commands to &lt;strong&gt;install git.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum install git -y
git version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Access the Jenkins server using the public DNS of the EC2 instance or public IP of the instance on port &lt;strong&gt;8080&lt;/strong&gt;.&lt;br&gt;
http://{ec2-public-dns}:8080 or http://{public IP}:8080/&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Login to Jenkins console using your credentials.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Add Git plugins in Jenkins&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, we will install the required &lt;strong&gt;plugins&lt;/strong&gt; for our project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In your Jenkins console, go via the &lt;strong&gt;Jenkins GUI -&amp;gt; Manage Jenkins -&amp;gt; Manage Plugins.&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;Select the tab “&lt;strong&gt;Available&lt;/strong&gt;” and select all the &lt;strong&gt;Git plugins&lt;/strong&gt; and then click on &lt;strong&gt;Install without Restart&lt;/strong&gt;. Mine are already installed.&lt;/li&gt;
&lt;li&gt;This step is the most important one as it will allow us to access the code from our git repository. Installation of plugins might take a few minutes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;4. Create a Jenkins Job&lt;/strong&gt;&lt;br&gt;
Let’s now create our pipeline for this project. After the installation of plugins, return to the Dashboard. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Via Jenkins -&amp;gt; New Item&lt;/strong&gt; you’ll get to a page that will let you specify which kind of job you want to create. &lt;/li&gt;
&lt;li&gt;For now, start by creating a &lt;strong&gt;Freestyle Project&lt;/strong&gt;, give a project name, and hit OK.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;5. Configure Jenkins job to trigger the pipeline, after each change/commit is pushed to your Git repository&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To configure the pipeline, select the &lt;strong&gt;GitHub Project&lt;/strong&gt; option and add your GitHub repository URL. &lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Source Code Management&lt;/strong&gt; select Git and add your Git repository URL.&lt;/li&gt;
&lt;li&gt;This will allow Jenkins to access the source code from the git repository.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For more reference&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/-hq1CW0P5OY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>awscloud</category>
    </item>
    <item>
      <title>How to schedule or register for AWS Certification exam 2021? | Step by step to book AWS Exam.</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Thu, 03 Feb 2022 10:13:02 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-to-schedule-or-register-for-aws-certification-exam-2021-step-by-step-to-book-aws-exam-535c</link>
      <guid>https://dev.to/aws-builders/how-to-schedule-or-register-for-aws-certification-exam-2021-step-by-step-to-book-aws-exam-535c</guid>
      <description>&lt;p&gt;&lt;a href="https://youtu.be/3G8h-rZgO2k"&gt;Click here&lt;/a&gt; for more details&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to setup HPC cluster on AWS using AWS Parallel Cluster 2.0 | With Monitoring tool Grafana</title>
      <dc:creator>Sandipkumar Patel</dc:creator>
      <pubDate>Thu, 14 Oct 2021 06:38:54 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-to-setup-hpc-cluster-on-aws-using-aws-parallel-cluster-20-with-monitoring-tool-grafana-28ep</link>
      <guid>https://dev.to/aws-builders/how-to-setup-hpc-cluster-on-aws-using-aws-parallel-cluster-20-with-monitoring-tool-grafana-28ep</guid>
      <description>&lt;p&gt;In this tutorial, you will learn about High-performance computing using AWS. You will design 3 nodes cluster ( 1  master node, 2 compute nodes). Once you will set up a cluster then you will integrate the Grafana tool to monitor the cluster resources. Grafana is multi-platform open-source analytics and interactive visualization web application. Once the cluster and monitoring tool will be done, you will execute your first HPC job ( prime number calculation ).  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Setup cluster of 3 nodes ( 1 Master node, 2 Compute node) &lt;/li&gt;
&lt;li&gt;Setup Grafana for monitoring cluster resources &lt;/li&gt;
&lt;li&gt;Run you first HPC job ( Prime number calculation)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See complete Tutorial on YouTube&lt;br&gt;
For more reference&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/iHuu1mdWZYQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>aws</category>
      <category>hpc</category>
      <category>tutorial</category>
      <category>awshpc</category>
    </item>
  </channel>
</rss>
