Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

CloudWatch Event Rules

Compare
Choose a tag to compare
@moritzzimmer moritzzimmer released this 11 Feb 15:12
· 9 commits to master since this release

Breaking changes

CloudWatch Event Rules support

In addition to schedule_expression the module now also supports event_pattern as a trigger. This functionality has been merged into a new event type cloudwatch-event.

If you have been using cloudwatch-scheduled-event in the past, just replace it with the new event type:

event = {
    type                = "cloudwatch-event"
    schedule_expression = "rate(1 minute)"
}

publish

The publish argument of the module now defaults to false as specified by terraform. If you relied on creating new Lambda versions you need to enable this now explicitly:

module "lambda" {
  // ...
  publish       = true
}

runtime

The runtime argument of the module is now mandatory as specified by terraform. If you relied on the old default (go1.x), you need to set it explicitly:

module "lambda" {
  // ...
  runtime       = "go1.x"
}

func

for all serverless gophers: https://github.com/moritzzimmer/func/releases/tag/v0.0.17 supports this release