Commit 5832e7cc authored by Anton Babenko's avatar Anton Babenko

chore: Updated versions in README

parent fe793621
...@@ -37,11 +37,11 @@ Note that this example may create resources which cost money. Run `terraform des ...@@ -37,11 +37,11 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Source | Version | | Name | Source | Version |
|------|--------|---------| |------|--------|---------|
| <a name="module_all_notifications"></a> [all\_notifications](#module\_all\_notifications) | ../../modules/notification | | | <a name="module_all_notifications"></a> [all\_notifications](#module\_all\_notifications) | ../../modules/notification | |
| <a name="module_lambda_function1"></a> [lambda\_function1](#module\_lambda\_function1) | terraform-aws-modules/lambda/aws | ~> 1.0 | | <a name="module_lambda_function1"></a> [lambda\_function1](#module\_lambda\_function1) | terraform-aws-modules/lambda/aws | ~> 2.0 |
| <a name="module_lambda_function2"></a> [lambda\_function2](#module\_lambda\_function2) | terraform-aws-modules/lambda/aws | ~> 1.0 | | <a name="module_lambda_function2"></a> [lambda\_function2](#module\_lambda\_function2) | terraform-aws-modules/lambda/aws | ~> 2.0 |
| <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | ../../ | | | <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | ../../ | |
| <a name="module_sns_topic1"></a> [sns\_topic1](#module\_sns\_topic1) | terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic | | | <a name="module_sns_topic1"></a> [sns\_topic1](#module\_sns\_topic1) | terraform-aws-modules/sns/aws | ~> 3.0 |
| <a name="module_sns_topic2"></a> [sns\_topic2](#module\_sns\_topic2) | terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic | | | <a name="module_sns_topic2"></a> [sns\_topic2](#module\_sns\_topic2) | terraform-aws-modules/sns/aws | ~> 3.0 |
## Resources ## Resources
......
...@@ -34,7 +34,7 @@ resource "null_resource" "download_package" { ...@@ -34,7 +34,7 @@ resource "null_resource" "download_package" {
module "lambda_function1" { module "lambda_function1" {
source = "terraform-aws-modules/lambda/aws" source = "terraform-aws-modules/lambda/aws"
version = "~> 1.0" version = "~> 2.0"
function_name = "${random_pet.this.id}-lambda1" function_name = "${random_pet.this.id}-lambda1"
handler = "index.lambda_handler" handler = "index.lambda_handler"
...@@ -46,7 +46,7 @@ module "lambda_function1" { ...@@ -46,7 +46,7 @@ module "lambda_function1" {
module "lambda_function2" { module "lambda_function2" {
source = "terraform-aws-modules/lambda/aws" source = "terraform-aws-modules/lambda/aws"
version = "~> 1.0" version = "~> 2.0"
function_name = "${random_pet.this.id}-lambda2" function_name = "${random_pet.this.id}-lambda2"
handler = "index.lambda_handler" handler = "index.lambda_handler"
...@@ -57,11 +57,17 @@ module "lambda_function2" { ...@@ -57,11 +57,17 @@ module "lambda_function2" {
} }
module "sns_topic1" { module "sns_topic1" {
source = "terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic" source = "terraform-aws-modules/sns/aws"
version = "~> 3.0"
name_prefix = "${random_pet.this.id}-2"
} }
module "sns_topic2" { module "sns_topic2" {
source = "terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_sns_topic" source = "terraform-aws-modules/sns/aws"
version = "~> 3.0"
name_prefix = "${random_pet.this.id}-2"
} }
resource "aws_sqs_queue" "this" { resource "aws_sqs_queue" "this" {
...@@ -98,16 +104,16 @@ module "all_notifications" { ...@@ -98,16 +104,16 @@ module "all_notifications" {
lambda_notifications = { lambda_notifications = {
lambda1 = { lambda1 = {
function_arn = module.lambda_function1.this_lambda_function_arn function_arn = module.lambda_function1.lambda_function_arn
function_name = module.lambda_function1.this_lambda_function_name function_name = module.lambda_function1.lambda_function_name
events = ["s3:ObjectCreated:Put"] events = ["s3:ObjectCreated:Put"]
filter_prefix = "prefix/" filter_prefix = "prefix/"
filter_suffix = ".json" filter_suffix = ".json"
} }
lambda2 = { lambda2 = {
function_arn = module.lambda_function2.this_lambda_function_arn function_arn = module.lambda_function2.lambda_function_arn
function_name = module.lambda_function2.this_lambda_function_name function_name = module.lambda_function2.lambda_function_name
events = ["s3:ObjectCreated:Post"] events = ["s3:ObjectCreated:Post"]
} }
} }
...@@ -130,14 +136,14 @@ module "all_notifications" { ...@@ -130,14 +136,14 @@ module "all_notifications" {
sns_notifications = { sns_notifications = {
sns1 = { sns1 = {
topic_arn = module.sns_topic1.this_sns_topic_arn topic_arn = module.sns_topic1.sns_topic_arn
events = ["s3:ObjectRemoved:Delete"] events = ["s3:ObjectRemoved:Delete"]
filter_prefix = "prefix3/" filter_prefix = "prefix3/"
filter_suffix = ".csv" filter_suffix = ".csv"
} }
sns2 = { sns2 = {
topic_arn = module.sns_topic2.this_sns_topic_arn topic_arn = module.sns_topic2.sns_topic_arn
events = ["s3:ObjectRemoved:DeleteMarkerCreated"] events = ["s3:ObjectRemoved:DeleteMarkerCreated"]
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment