Use this URL for the source of the module. See the usage examples below for more details.
github.com/pbs/terraform-aws-lambda-permission-module?ref=1.0.0More information can be found on these install methods and more in the documentation here.
Grants a Lambda function to be invoked by a specific service.
Integrate this module like so:
module "lambda_permission" {
source = "github.com/pbs/terraform-aws-lambda-permission-module?ref=1.0.0"
statement_id = "AllowExecutionFromSNS"
action = "lambda:InvokeFunction"
function_name = module.lambda.name
principal = "sns.amazonaws.com"
source_arn = module.topic.arn
}If this repo is added as a subtree, then the version of the module should be close to the version shown here:
1.0.0
Note, however that subtrees can be altered as desired within repositories.
Further documentation on usage can be found here.
Below is automatically generated documentation on this Terraform module using terraform-docs
| Name | Version |
|---|---|
| terraform | >= 1.13.0 |
| aws | >= 6.0.0 |
| Name | Version |
|---|---|
| aws | 6.19.0 |
No modules.
| Name | Type |
|---|---|
| aws_lambda_permission.lambda_permission | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| action | Action for the Lambda Permission | string |
n/a | yes |
| function_name | Function Name for the Lambda Permission | string |
n/a | yes |
| principal | Principal for the Lambda Permission | string |
n/a | yes |
| source_arn | Source ARN for the Lambda Permission | string |
n/a | yes |
| statement_id | Statement ID for the Lambda Permission | string |
n/a | yes |
No outputs.