Skip to content

pbs-common/terraform-aws-lambda-permission-module

Repository files navigation

PBS TF Lambda Permission Module

Installation

Using the Repo Source

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.0

Alternative Installation Methods

More information can be found on these install methods and more in the documentation here.

Usage

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
}

Adding This Version of the Module

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


Requirements

Name Version
terraform >= 1.13.0
aws >= 6.0.0

Providers

Name Version
aws 6.19.0

Modules

No modules.

Resources

Name Type
aws_lambda_permission.lambda_permission resource

Inputs

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

Outputs

No outputs.

About

Standard PBS TF Lambda Permission Module

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •