Microservice periodically offloading Cumulocity audit logs as CloudWatch events for every subscribed tenant.
- Prerequisites
- JDK 11+
- Maven
- Docker
- Configure the microservice
- With an HTTP Request
PUT /tenant/options/cumulocity-cloudwatch Authorization: ... Content-Type: application/json
{ "aws-region": "<awsRegion>", "aws-access-key-id": "<accessKeyID>", "credentials.aws-secret-access-key": "<awsSecretAccessKey>" }
- With go-c8y-cli using the cumulocity-cloudwatch-configuration-template
c8y tenantoptions updateBulk --category cumulocity-cloudwatch --template ./src/main/configuration/cumulocity-cloudwatch-configuration-template.jsonnet --templateVars "awsRegion=<awsRegion>,awsAccessKeyID=<accessKeyID>,awsSecretAccessKey=<awsSecretAccessKey>"
- Build the microservice:
mvn clean install
- Upload the zip file in
target
folder to cumulocity.