Skip to content

Jenkins AWS Pipeline

Matthew Thomas edited this page Nov 23, 2020 · 4 revisions

Logo

  1. Create an account with AWS so that you can access the AWS console.
  2. Create an EC2 Instance. Set up a t2 medium instance with additional Elastic Block Storage (2GB).
  3. SSH into EC2, and install git, Jenkins, maven, and java 8 using the package manager. Start Jenkins.
  4. Go to your instance IP:8080 and start the Jenkins Configuration.
  5. In Jenkins go to Manage Jenkins > Manage Plugins, download the Deploy to Container plugin, the Docker Plugin, the Maven Integration plugin, Workspace Cleanup Plugin, and the Pipeline: AWS Steps plugin.
  6. Add Github Webhooks.
  7. Create projects in Jenkins for Backend and Front End using Pipelines.
  8. Make the Pipeline Github Projects and add the URL.
  9. Add "clean before checkout".
  10. Use Jenkins File Scripts for each project (check root directory).
  11. Contact Revature management to get access to S3 IAM.
  12. Put keys into Jenkins.
  13. Create a S3 public Bucket set up to host a static website.
  14. Deploy the Front end to S3 and the Back-end to EC2.