Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfmann committed Nov 12, 2020
1 parent 4abf28f commit 166f9ea
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions packages/@aws-cdk/aws-codebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,38 @@ new codebuild.Project(this, 'Project', {
})
```

## Logs

CodeBuild lets you specify an S3 Bucket, CloudWatch Log Group or both to receive logs from your projects.

By default, logs will go to cloudwatch.

### CloudWatch Logs Example

```typescript
new codebuild.Project(this, 'Project', {
logsConfig: {
cloudwatch: {
logGroup: new cloudwatch.LogGroup(this, `MyLogGroup`),
}
},
...
})
```

### S3 Logs Example

```typescript
new codebuild.Project(this, 'Project', {
logsConfig: {
s3: {
bucket: new s3.Bucket(this, `LogBucket`)
}
},
...
})
```

## Credentials

CodeBuild allows you to store credentials used when communicating with various sources,
Expand Down

0 comments on commit 166f9ea

Please sign in to comment.