# Creating a Codebuild project and getting the output with CloudWatch Logs

Let’s start by going to the S3 console and creating a bucket that we are going to use to store the build artifacts. Once there, I will select my region (us-east-1), leave Bucket type as General purpose, provide a globally unique bucket name (codebuildbucket) and leave ACL’s disabled.

<figure><img src="/files/lUuFdCn26rfARnW6cXt7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/2RkIh9j2oMfcoKZpB3mb" alt=""><figcaption></figcaption></figure>

Download the following zip file from this [repo](https://github.com/samcolon/AWSDevOpsEngineerPro/tree/main/Lab1/MessageUtil) and upload it to the bucket as is. Credit to Sam Colon

<figure><img src="/files/fi4XXIf6G7Noevi2F4aU" alt=""><figcaption></figcaption></figure>

Now I have to create a policy then a service role in IAM


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oklencodes.gitbook.io/untitled/devops/creating-a-codebuild-project-and-getting-the-output-with-cloudwatch-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
