Skip to content

Commit

Permalink
fix: enable graphana logs (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeflyer committed Feb 9, 2023
1 parent 7395f86 commit 0ce1f90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stacks/PickupStack.ts
Expand Up @@ -175,6 +175,15 @@ export function PickupStack ({ app, stack }: StackContext): void {
basicApi.bucket.cdk.bucket.grantReadWrite(validationService.taskDefinition.taskRole)
basicApi.dynamoDbTable.cdk.table.grantReadWriteData(validationService.taskDefinition.taskRole)
basicApi.updatePinQueue.cdk.queue.grantConsumeMessages(validationService.taskDefinition.taskRole)

validationService.taskDefinition.taskRole.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMReadOnlyAccess'))
// configure the custom image to log router
validationService.taskDefinition.addFirelensLogRouter('log-router', {
firelensConfig: {
type: FirelensLogRouterType.FLUENTBIT
},
image: ContainerImage.fromRegistry('grafana/fluent-bit-plugin-loki:1.6.0-amd64')
})
}
}

Expand Down

0 comments on commit 0ce1f90

Please sign in to comment.