Skip to content

Version 6

Compare
Choose a tag to compare
@moritzzimmer moritzzimmer released this 08 Oct 07:37

In this major version release, deprecated terraform sub-modules and workarounds for aws provider versions < 2 have been removed.

Note: Terraform will destroy and then create a replacement of some of the resources when applying this version to existing 5.x stacks, especially the Lambda function and it's IAM role.

In case of Error: error creating IAM Role (my-function-eu-west-1): EntityAlreadyExists: Role with name my-function-eu-west-1 already exists. errors (old role hasn't been fully deleted inside AWS), please apply the changes again.

New features

CloudWatch logs

The possibility to declare CloudWatch logs subscription filters has been enhanced to support:

  cloudwatch_log_subscription_filters = {
    lambda_1 = {
      //see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_subscription_filter for available arguments
      destination_arn = module.destination_1.arn // required
    }

    lambda_2 = {
      destination_arn = module.destination_2.arn // required
    }
  }

see example

In addition, the variable name to configure the retention time has been aliged to cloudwatch_logs_retention_in_days.

GovCloud

Hardcoded partition identifiers in ARNs have been refactored to support creating Lambda functions in AWS GovCloud (#50)

Breaking changes

  • log_retention_in_days has been renamed to cloudwatch_logs_retention_in_days
  • logfilter_destination_arn has been replaced by cloudwatch_log_subscription_filters (see above)
  • deprecated event variable has been removed, use specific cloudwatch_event_rules, event_source_mappings or sns_subscriptions instead. Note: there is no replacement for the deprecated s3 sub-module
  • deprecated ssm_parameter_names variable has been removed, use ssm instead

What's Changed

Full Changelog: v5.17.0...v6.0.0