Skip to content

Commit

Permalink
Fix README example (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog authored Dec 21, 2023
1 parent a96a115 commit bfca8e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ Source: https://github.com/isotoma/datadog-ecs-cdk
## EC2 example

```typescript
import { EcsDatadogDaemonService } from 'datadog-ecs-cdk';
import { DatadogEcsDaemonService } from 'datadog-ecs-cdk';

// ...

new EcsDatadogDaemonService(this, 'EcsDatadog', {
new DatadogEcsDaemonService(this, 'EcsDatadog', {
ecsCluster: myCluster,
datadogApiKeySecret: ecs.Secret.fromSecretsManager(mySecret),
// By default, when logs are enabled, collects logs from all containers,
// but not the Datadog agent container itself.
logs: {
enabled: true,
},
});
```

Expand Down

0 comments on commit bfca8e2

Please sign in to comment.