Creates an AWS Lambda function subscribed to SNS topics.
terraform init
terraform plan
Note that this example may create resources which cost money. Run terraform destroy
to destroy those resources.
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
Name | Version |
---|---|
terraform | >= 1.3 |
archive | >= 2.2 |
aws | >= 5.32 |
Name | Version |
---|---|
archive | >= 2.2 |
aws | >= 5.32 |
Name | Source | Version |
---|---|---|
lambda | ../../ | n/a |
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 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | n/a | string |
"eu-west-1" |
no |
No outputs.