Innablr / revolver

AWS Powercycle Facility
MIT License
2 stars 3 forks source link

Add SNS or SQS as an audit-log target #344

Closed lyricnz closed 3 months ago

lyricnz commented 3 months ago

So other systems can be notified when resources are started/stopped, and take reactive steps. For example disabling/enabling monitoring or alerting.

lyricnz commented 3 months ago

Looks like there is some JSON->SQS support already - that may suffice. Will test.

    auditLog:
        # Option to write output to an SQS queue
        sqs:
          url: "https://sqs.ap-southeast-2.amazonaws.com/123456789012/sqs-queue"
          # compress messages before sending to queue, defaults to true
          compress: true
          # attributes can be any key/value string pair and are submitted as message attributes for each SQS message
          attributes:
            costCenter: "1234"
            recordId: "0000001"
lyricnz commented 3 months ago

SNS is probably a better fit for 1:many pubsub.

lyricnz commented 3 months ago

https://github.com/Innablr/revolver/pull/345