Version 6
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:
- multiple subscription filters
- configure properties from cloudwatch_log_subscription_filter
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 tocloudwatch_logs_retention_in_days
logfilter_destination_arn
has been replaced bycloudwatch_log_subscription_filters
(see above)- deprecated
event
variable has been removed, use specificcloudwatch_event_rules
,event_source_mappings
orsns_subscriptions
instead. Note: there is no replacement for the deprecateds3
sub-module - deprecated
ssm_parameter_names
variable has been removed, usessm
instead
What's Changed
- Version 6 by @moritzzimmer in #39
Full Changelog: v5.17.0...v6.0.0