Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-s3-bucket
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-s3-bucket
Commits
5832e7cc
Commit
5832e7cc
authored
Apr 28, 2021
by
Anton Babenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Updated versions in README
parent
fe793621
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
README.md
examples/notification/README.md
+4
-4
main.tf
examples/notification/main.tf
+16
-10
No files found.
examples/notification/README.md
View file @
5832e7cc
...
...
@@ -37,11 +37,11 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Source | Version |
|------|--------|---------|
|
<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_function2"
></a>
[
lambda\_function2
](
#module\_lambda\_function2
)
| 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 | ~>
2
.0 |
|
<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_topic2"
></a>
[
sns\_topic2
](
#module\_sns\_topic2
)
| 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/
sns/aws | ~> 3.0
|
## Resources
...
...
examples/notification/main.tf
View file @
5832e7cc
...
...
@@ -34,7 +34,7 @@ resource "null_resource" "download_package" {
module
"lambda_function1"
{
source
=
"terraform-aws-modules/lambda/aws"
version
=
"~>
1
.0"
version
=
"~>
2
.0"
function_name
=
"
${
random_pet
.
this
.
id
}
-lambda1"
handler
=
"index.lambda_handler"
...
...
@@ -46,7 +46,7 @@ module "lambda_function1" {
module
"lambda_function2"
{
source
=
"terraform-aws-modules/lambda/aws"
version
=
"~>
1
.0"
version
=
"~>
2
.0"
function_name
=
"
${
random_pet
.
this
.
id
}
-lambda2"
handler
=
"index.lambda_handler"
...
...
@@ -57,11 +57,17 @@ module "lambda_function2" {
}
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"
{
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"
{
...
...
@@ -98,16 +104,16 @@ module "all_notifications" {
lambda_notifications
=
{
lambda1
=
{
function_arn
=
module
.
lambda_function1
.
this_
lambda_function_arn
function_name
=
module
.
lambda_function1
.
this_
lambda_function_name
function_arn
=
module
.
lambda_function1
.
lambda_function_arn
function_name
=
module
.
lambda_function1
.
lambda_function_name
events
=
[
"s3:ObjectCreated:Put"
]
filter_prefix
=
"prefix/"
filter_suffix
=
".json"
}
lambda2
=
{
function_arn
=
module
.
lambda_function2
.
this_
lambda_function_arn
function_name
=
module
.
lambda_function2
.
this_
lambda_function_name
function_arn
=
module
.
lambda_function2
.
lambda_function_arn
function_name
=
module
.
lambda_function2
.
lambda_function_name
events
=
[
"s3:ObjectCreated:Post"
]
}
}
...
...
@@ -130,14 +136,14 @@ module "all_notifications" {
sns_notifications
=
{
sns1
=
{
topic_arn
=
module
.
sns_topic1
.
this_
sns_topic_arn
topic_arn
=
module
.
sns_topic1
.
sns_topic_arn
events
=
[
"s3:ObjectRemoved:Delete"
]
filter_prefix
=
"prefix3/"
filter_suffix
=
".csv"
}
sns2
=
{
topic_arn
=
module
.
sns_topic2
.
this_
sns_topic_arn
topic_arn
=
module
.
sns_topic2
.
sns_topic_arn
events
=
[
"s3:ObjectRemoved:DeleteMarkerCreated"
]
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment