Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Deploying and Updating a Web Application with a CI/CD Pipeline Using AWS CodeStar

As a budding DevOps engineer, you want to use a variety of AWS services to smooth your development pipeline. Specifically, you want to set up an AWS native CI/CD workflow. In this hands-on lab, we look at how to use AWS CodeStar to automate the setup of a CodeStar project, including AWS CodeCommit, AWS CodeDeploy, and AWS CodePipeline.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Apr 06, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a CodeStar Project
    1. Navigate to the AWS CodeStar console page.
    2. Click Start a project.
    3. In the Create service role dialog box, select Yes, create role.
    4. In the Filter text box toward the upper left, type "Website".
    5. Select the HTML 5 Website card option to create a CodeStar project based on a website.
    6. For the Project name, enter "Lab Project".
    7. Notice the Project ID and the Repository name have been auto-filled for you.
    8. Select AWS CodeCommit as your repository type and click Next.
    9. Click Create Project.
    10. When prompted, click Amazon EC2 Management Console link to create an EC2 key pair.
    11. Return to the CodeStar console, press the refresh button located to the right of the Select a Key Pair dropdown menu, select the key you just made, check the box to acknowledge you have the key, and click Create Project.
    12. When prompted, enter your name as the Display Name and an email address (can be fake) in the Email text box.
    13. Click Next.
    14. For Pick how you want to edit your code, select AWS Cloud9.
    15. Click Next.
    16. Accept the default options for the Cloud9 environment, and click Next.
  2. Challenge

    Review the Deployed Website
    1. Within the CodeStar project page, click the link in the Application endpoints card.
    2. The web page we deployed should now load.
  3. Challenge

    Deploy a Change to the Website
    1. From the CodeStar project page, from the AWS Cloud9 environments card, click See my environments.

    2. From the card that shows the Cloud9 environment, click Open IDE.

    3. When Cloud9 loads, navigate to the folder lab-project > lab-project > webpage, and load the file index.html.

    4. Locate some text within the HTML that is displayed on the page (e.g., "Congratulations") and change this text to something else (e.g., "This lab is great!").

    5. Save the file index.html.

    6. In the Bash console panel at the bottom of the Cloud9 IDE, enter the following commands:

      cd ~/environment/lab-project/
      git add .
      git commit -m "This is my change."
      git push
      
    7. Navigate to the CodeStar project console page, where you should now see CodePipeline deploying the changes you made.

    8. Navigate back to the application endpoint (if the tab was already open, refresh it), and see the changes you made to the website.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight