Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Security
Google Cloud Platform icon
Labs

Extending an AWS Governance Pipeline with a New Control

This challenge lab requires you to apply a repeatable governance pattern by implementing an additional automated control into an existing governance validation AWS CodePipeline pipeline. Throughout this lab, you will add an additional stage to your pipeline that will scan for secrets within an artifacts file. The focus is on demonstrating how the existing architectural footprint (CodePipeline and CodeBuild) can be safely extended to include new security and compliance checks, reinforcing a governance pattern without introducing new complexity. **Note**: Ensure that you read through the additional information and resources section.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Advanced
Last updated
Jun 15, 2026
Duration
30m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Verify AWS resources were deployed and locally clone the repository files

    Verify AWS resources were deployed and locally clone the repository files

    • Clone and download the repository files for the lab from https://github.com/pluralsight-cloud/Path-Proactive-Security-in-Your-AWS-CI-CD-Pipeline/tree/main
    • Verify the pre-existing resources were deployed in AWS with the lab folder (see the Additional Resources' Directory Tree):
      • Amazon S3 bucket (Starts with governance-lab-artifacts-)
      • AWS CodePipeline pipeline (governance-pipeline)
        • The pipeline contains Source, GovernanceLint, GovernanceGuard, and Deploy stages to start.
      • CloudFormation stack is deployed (governance-lab-deploy).
  2. Challenge

    Create the new CodeBuild buildspec file

    You will now create the new required buildspec file for the upcoming GovernanceSecrets CodePipeline stage and respective CodeBuild project.

    • Edit the configuration/buildspec-secrets.yml file to be used with the new CodeBuild project containing the following phases:
      • install: Install TruffleHog following instructions here > https://github.com/trufflesecurity/trufflehog#using-installation-script
      • pre_build: Confirm TruffleHog was installed by checking the version.
      • build: Scan all contents within the artifacts files for hardcoded secrets.
        • Hint: You need to specify a specific flag when scanning to cause the error output.

    Important: You can find all TruffleHog documentation and instruction at the following GitHub page: https://github.com/trufflesecurity/trufflehog

  3. Challenge

    Create the new CodeBuild project

    With the buildspec file ready to go, you can now create the CodeBuild project that will use it.

    • Within CodeBuild, clone the existing governance-guard project:
      • Name: governance-secrets
      • Source > Source 1 - Primary: AWS CodePipeline
      • Use a buildspec file: configuration/buildspec-secrets.yml
      • Service role permissions - Existing service role: ARN containing governance-codebuild-role
  4. Challenge

    Create the new CodePipeline stage

    Now you can create the code pipeline stage to reference the recently created CodeBuild project for your secrets scanning.

    • Edit the existing governance-pipeline within AWS CodePipeline
    • Add a new stage between the GovernanceLint and GovernanceGuard stages
      • Name: GovernanceSecrets
    • Add a new stage action
      • Action name: GovernanceSecretsAction
      • Action provider: Build > AWS CodeBuild
      • Region: United States (N. Virginia)
      • Input artifacts: GovernanceLintOutputs
      • Project name: governance-secrets
      • Output artifacts: GovernanceSecretsOutputs

    Then, you need to edit the GovernanceGuard stage's DeployAction

    • Input artifacts: GovernanceSecretsOutputs
  5. Challenge

    Update the template and test the AWS CodePipeline pipeline

    With all of the pieces in place, you can now move on to testing your pipeline.

    • Generate a new set of IAM access keys for your current user.
    • Add your newly created access keys to the following within your infra/template.yml file:
      • OUR_AWS_ACCESS_KEY_ID
      • OUR_AWS_SECRET_ACCESS_KEY
    • Create the new artifacts.zip file containing the required directories:
      • infra/
      • configuration/
      • cfn-guard/
    • Upload the artifacts.zip file to the Amazon S3 artifacts bucket in your account.
    • Wait for the pipeline to fail at the GovernanceSecrets stage
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