Skip to content

Commit 5832e7c

Browse files
committed
chore: Updated versions in README
1 parent fe79362 commit 5832e7c

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

examples/notification/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Note that this example may create resources which cost money. Run `terraform des
3737
| Name | Source | Version |
3838
|------|--------|---------|
3939
| <a name="module_all_notifications"></a> [all\_notifications](#module\_all\_notifications) | ../../modules/notification | |
40-
| <a name="module_lambda_function1"></a> [lambda\_function1](#module\_lambda\_function1) | terraform-aws-modules/lambda/aws | ~> 1.0 |
41-
| <a name="module_lambda_function2"></a> [lambda\_function2](#module\_lambda\_function2) | terraform-aws-modules/lambda/aws | ~> 1.0 |
40+
| <a name="module_lambda_function1"></a> [lambda\_function1](#module\_lambda\_function1) | terraform-aws-modules/lambda/aws | ~> 2.0 |
41+
| <a name="module_lambda_function2"></a> [lambda\_function2](#module\_lambda\_function2) | terraform-aws-modules/lambda/aws | ~> 2.0 |
4242
| <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | ../../ | |
43-
| <a name="module_sns_topic1"></a> [sns\_topic1](#module\_sns\_topic1) | terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic | |
44-
| <a name="module_sns_topic2"></a> [sns\_topic2](#module\_sns\_topic2) | terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic | |
43+
| <a name="module_sns_topic1"></a> [sns\_topic1](#module\_sns\_topic1) | terraform-aws-modules/sns/aws | ~> 3.0 |
44+
| <a name="module_sns_topic2"></a> [sns\_topic2](#module\_sns\_topic2) | terraform-aws-modules/sns/aws | ~> 3.0 |
4545

4646
## Resources
4747

examples/notification/main.tf

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "null_resource" "download_package" {
3434

3535
module "lambda_function1" {
3636
source = "terraform-aws-modules/lambda/aws"
37-
version = "~> 1.0"
37+
version = "~> 2.0"
3838

3939
function_name = "${random_pet.this.id}-lambda1"
4040
handler = "index.lambda_handler"
@@ -46,7 +46,7 @@ module "lambda_function1" {
4646

4747
module "lambda_function2" {
4848
source = "terraform-aws-modules/lambda/aws"
49-
version = "~> 1.0"
49+
version = "~> 2.0"
5050

5151
function_name = "${random_pet.this.id}-lambda2"
5252
handler = "index.lambda_handler"
@@ -57,11 +57,17 @@ module "lambda_function2" {
5757
}
5858

5959
module "sns_topic1" {
60-
source = "terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic"
60+
source = "terraform-aws-modules/sns/aws"
61+
version = "~> 3.0"
62+
63+
name_prefix = "${random_pet.this.id}-2"
6164
}
6265

6366
module "sns_topic2" {
64-
source = "terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic"
67+
source = "terraform-aws-modules/sns/aws"
68+
version = "~> 3.0"
69+
70+
name_prefix = "${random_pet.this.id}-2"
6571
}
6672

6773
resource "aws_sqs_queue" "this" {
@@ -98,16 +104,16 @@ module "all_notifications" {
98104

99105
lambda_notifications = {
100106
lambda1 = {
101-
function_arn = module.lambda_function1.this_lambda_function_arn
102-
function_name = module.lambda_function1.this_lambda_function_name
107+
function_arn = module.lambda_function1.lambda_function_arn
108+
function_name = module.lambda_function1.lambda_function_name
103109
events = ["s3:ObjectCreated:Put"]
104110
filter_prefix = "prefix/"
105111
filter_suffix = ".json"
106112
}
107113

108114
lambda2 = {
109-
function_arn = module.lambda_function2.this_lambda_function_arn
110-
function_name = module.lambda_function2.this_lambda_function_name
115+
function_arn = module.lambda_function2.lambda_function_arn
116+
function_name = module.lambda_function2.lambda_function_name
111117
events = ["s3:ObjectCreated:Post"]
112118
}
113119
}
@@ -130,14 +136,14 @@ module "all_notifications" {
130136

131137
sns_notifications = {
132138
sns1 = {
133-
topic_arn = module.sns_topic1.this_sns_topic_arn
139+
topic_arn = module.sns_topic1.sns_topic_arn
134140
events = ["s3:ObjectRemoved:Delete"]
135141
filter_prefix = "prefix3/"
136142
filter_suffix = ".csv"
137143
}
138144

139145
sns2 = {
140-
topic_arn = module.sns_topic2.this_sns_topic_arn
146+
topic_arn = module.sns_topic2.sns_topic_arn
141147
events = ["s3:ObjectRemoved:DeleteMarkerCreated"]
142148
}
143149
}

0 commit comments

Comments
 (0)