

# Amazon Config sample with CodeBuild
<a name="how-to-integrate-config"></a>

Amazon Config provides an inventory of your Amazon resources and a history of configuration changes to these resources. Amazon Config now supports Amazon CodeBuild as an Amazon resource, which means the service can track your CodeBuild projects. For more information about Amazon Config, see [What is Amazon Config?](https://docs.amazonaws.cn/config/latest/developerguide/WhatIsConfig.html) in the *Amazon Config Developer Guide*.

You can see the following information about CodeBuild resources on the **Resource Inventory** page in the Amazon Config console:
+ A timeline of your CodeBuild configuration changes.
+ Configuration details for each CodeBuild project.
+ Relationships with other Amazon resources.
+ A list of changes to your CodeBuild projects.

**Topics**
+ [Use CodeBuild with Amazon Config](#how-to-integrate-config-run)
+ [Step 3: View Amazon CodeBuild data in the Amazon Config console](#viewing-config-details)

## Use CodeBuild with Amazon Config
<a name="how-to-integrate-config-run"></a>

The procedures in this topic show you how to set up Amazon Config and look up CodeBuild projects.

**Topics**
+ [Prerequisites](#how-to-create-a-build-project)
+ [Step 1: Set up Amazon Config](#setup-config)
+ [Step 2: Look up Amazon CodeBuild projects](#lookup-projects)

### Prerequisites
<a name="how-to-create-a-build-project"></a>

Create your Amazon CodeBuild project. For instructions, see [Create a build project](create-project.md).

### Step 1: Set up Amazon Config
<a name="setup-config"></a>
+ [Setting up Amazon Config (console)](https://docs.amazonaws.cn/config/latest/developerguide/gs-console.html)
+ [Setting up Amazon Config (Amazon CLI)](https://docs.amazonaws.cn/config/latest/developerguide/gs-cli.html)

**Note**  
After you complete setup, it might take up to 10 minutes before you can see Amazon CodeBuild projects in the Amazon Config console.

### Step 2: Look up Amazon CodeBuild projects
<a name="lookup-projects"></a>

1. Sign in to the Amazon Management Console and open the Amazon Config console at [https://console.amazonaws.cn/config](https://console.amazonaws.cn/config). 

1. On the **Resource inventory** page, select **Amazon CodeBuild Project** under **Resource type**. Scroll down and select the **CodeBuild project** check box.

1. Choose **Look up**.

1. After the list of CodeBuild projects is added, choose the CodeBuild project name link in the **Config timeline** column.

## Step 3: View Amazon CodeBuild data in the Amazon Config console
<a name="viewing-config-details"></a>

When you look up resources on the **Resource inventory** page, you can choose the Amazon Config timeline to view details about your CodeBuild project. The details page for a resource provides information about the configuration, relationships, and number of changes made to that resource. 

The blocks at the top of the page are collectively called the timeline. The timeline shows the date and time that the recording was made.

For more information, see [Viewing configuration details in the Amazon Config console](https://docs.amazonaws.cn/config/latest/developerguide/view-manage-resource-console.html) in the *Amazon Config Developer Guide*.