Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 8f3a305

Browse files
committed
update to 3.0.1
1 parent bbd45ec commit 8f3a305

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

CHANGELOG.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ All notable changes to this project will be documented in this file.
44

55
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [3.0.1] - 2020-08-08
8+
9+
- Clarification on changes for Terraform 0.13
10+
711
## [3.0.0] - 2020-08-08
812

9-
- fix errors that could occur if `create_warmer_event` set to `false`
13+
**Breaking Change**
14+
15+
- removed `provider` block from module to enable Terraform 0.13 module features
16+
- required to allow use of new modules arguments `for_each`, `count`, and `depends_on`
17+
- `var.aws_region` removed as only used in provider block
18+
19+
Enhancements
20+
21+
- add `required_providers` section to `terraform` block, specifies min ver for aws provider
1022

11-
Breaking Change
23+
Bug Fix
1224

13-
- remove `provider` block from `main.tf` as this improves Terraform 0.13 compatibility
14-
- removed `var.aws_region`, since is no longer needed without provider block
15-
- add `required_providers` to set min version of aws provider
25+
- fix error that could occur if `create_warmer_event` set to `false`
1626

1727
## [2.0.1] - 2019-06-19
1828

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
`terraform-aws-sns-to-cloudwatch-logs-lambda` is a Terraform module to provision a Lambda Function which routes SNS messages to CloudWatch Logs
66

7-
- Terraform versions >= 0.12, use module `version >= "3.0.0"`
8-
- If using `var.aws_region` to specify deployment region use `version = "2.0.1"` or switch to provider aliases and explicit provider passing
7+
- Terraform versions >= 0.12, use module `version >= "3.0.1"` (See exception)
98
- Terraform versions <= 0.11, use module `version = "1.0.1"`
109

10+
> Exception: if using `var.aws_region` to specify deployment region, use `version = "2.0.1"`, until you can switch to provider aliases and [explicit provider passing](https://www.terraform.io/docs/configuration/modules.html#passing-providers-explicitly).
11+
1112
## Terraform Module Features
1213

1314
This Module allows simple and rapid deployment
@@ -22,11 +23,12 @@ This Module allows simple and rapid deployment
2223
- Optionally create custom Lambda Layer zip using [build-lambda-layer-python](https://github.com/robertpeteuil/build-lambda-layer-python)
2324
- Enables adding/changing dependencies
2425
- Enables compiling for different version of Python
25-
- New behavior in `3.0.0` in preperation for Terraform 0.13
26-
- inherits `region` from calling module's AWS Provider for resource creation/discovery.
27-
- Deploy to alternate regions via provider aliases and [expicit provider passing](https://www.terraform.io/docs/configuration/modules.html#passing-providers-explicitly)
28-
- This is driven by new recommendations for [Provider Configurations in Modules with 0.13](https://github.com/hashicorp/terraform/blob/master/website/docs/configuration/modules.html.md#providers-within-modules)
29-
- Specifically [Legacy Modules with Provider Provisions](https://github.com/hashicorp/terraform/blob/master/website/docs/configuration/modules.html.md#legacy-shared-modules-with-provider-configurations)
26+
- **Breaking Changes** in `3.0.0` - required to enable new Terraform 0.13 module arguments `for_each`, `count`, and `depends_on`
27+
- The module's internal AWS `provider` block has been removed
28+
- `var.aws_region` has been removed and can't be used to set a target region
29+
- By default, modules inherit the `region` of the calling module's Provider
30+
- To specify alternate regions, use provider aliases and [expicit provider passing](https://www.terraform.io/docs/configuration/modules.html#passing-providers-explicitly)
31+
- Additional information can be found in the docs for [Provider Configurations in Modules with 0.13](https://github.com/hashicorp/terraform/blob/master/website/docs/configuration/modules.html.md#providers-within-modules)
3032

3133
## SNS to CloudWatch Logs Features
3234

@@ -44,9 +46,7 @@ This Lambda Function forwards subject & body of SNS messages to CloudWatch Log G
4446
``` ruby
4547
module "sns_logger" {
4648
source = "robertpeteuil/sns-to-cloudwatch-logs-lambda/aws"
47-
version = "3.0.0" # Use with Terraform >= 0.13
48-
# version = "2.0.1" # Use with Terraform ~ 0.12.x
49-
# last version with var.aws_region and provider in module
49+
version = "3.0.1" # Use with Terraform >= 0.12 (including 0.13)
5050
# version = "1.0.1" # Latest version for Terraform <= 0.11
5151

5252
sns_topic_name = "projectx-logging"

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
terraform {
66
required_version = ">= 0.12.4"
77
required_providers {
8-
aws = ">= 2.12"
8+
aws = ">= 2.31"
99
}
1010
}
1111

0 commit comments

Comments
 (0)