LUIT Project 18-Automating a Jenkins server build via Terraform

<p><strong>Scenario:</strong>&nbsp;Your team would like to start using&nbsp;<strong>Jenkins</strong>&nbsp;as their&nbsp;<strong>CI/CD&nbsp;</strong>tool to create pipelines for&nbsp;<strong>DevOps</strong>&nbsp;projects. They need you to create the&nbsp;<strong>Jenkins</strong>&nbsp;server using&nbsp;<strong>Terraform</strong>&nbsp;so that it can be used in other environments and so that changes to the environment are better tracked.</p> <p>For the&nbsp;<strong>Foundational</strong>&nbsp;project you are allowed to have all your code in a single&nbsp;<a href="http://main.tf/" rel="noopener ugc nofollow" target="_blank">main.tf</a>&nbsp;file (known as a monolith) with hardcoded data. Push all your code to<strong>&nbsp;GitHub</strong>&nbsp;and include the link to your repo in your documentation.</p> <h1>FOUNDATIONAL:</h1> <ol> <li>Deploy 1<strong>&nbsp;EC2&nbsp;</strong>Instance in your Default<strong>&nbsp;VPC</strong>.</li> <li>Bootstrap the<strong>&nbsp;EC2</strong>&nbsp;instance with a script that will install and start&nbsp;<strong>Jenkins</strong>.</li> <li>Create and assign a&nbsp;<strong>Security Group</strong>&nbsp;to the<strong>&nbsp;Jenkins Security Group&nbsp;</strong>that allows traffic on&nbsp;<strong>port 22&nbsp;</strong>from your IP and allows traffic from&nbsp;<strong>port 8080</strong>.</li> <li>Create a<strong>&nbsp;S3 bucket</strong>&nbsp;for your&nbsp;<strong>Jenkins Artifacts</strong>&nbsp;that is not open to the public.</li> <li>Verify that you can reach your&nbsp;<strong>Jenkins</strong>&nbsp;install via&nbsp;<strong>port 8080</strong>&nbsp;in your browser. Be sure to include a screenshot of the<strong>&nbsp;Jenkins</strong>&nbsp;login screen in your documentation.</li> <li>Push your code to<strong>&nbsp;GitHub</strong>&nbsp;and include the link in your write up.</li> </ol> <p><a href="https://medium.com/@samuel.colon.jr/luit-project-18-automating-a-jenkins-server-build-via-terraform-af91e63a16f3"><strong>Read More</strong></a></p>
Tags: LUIT Project