Skip to content

Latest commit

 

History

History
 
 

with-sns-subscriptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Example with SNS subscriptions

Creates an AWS Lambda function subscribed to SNS topics.

usage

terraform init
terraform plan

Note that this example may create resources which cost money. Run terraform destroy to destroy those resources.

bootstrap with func

In case you are using go for developing your Lambda functions, you can also use func to bootstrap your project and get started quickly:

$ func new example-with-sns -e sns
$ cd example-with-sns && make init package plan

Requirements

Name Version
terraform >= 1.3
archive >= 2.2
aws >= 5.32

Providers

Name Version
archive >= 2.2
aws >= 5.32

Modules

Name Source Version
lambda ../../ n/a

Resources

Name Type
aws_kms_alias.kms_alias_sqs_sns resource
aws_kms_key.kms_key_sqs_sns resource
aws_lambda_alias.example resource
aws_sns_topic.topic_1 resource
aws_sns_topic.topic_2 resource
aws_sqs_queue.sqs_dlq_topic_1 resource
aws_sqs_queue_policy.sqs_dlq_topic_1 resource
archive_file.sns_handler data source
aws_caller_identity.current data source
aws_iam_policy_document.kms_sqs_sns data source
aws_iam_policy_document.sqs_access_policy data source

Inputs

Name Description Type Default Required
region n/a string "eu-west-1" no

Outputs

No outputs.