Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.36 KB

README-HEADER.md

File metadata and controls

55 lines (34 loc) · 1.36 KB

PBS TF Lambda Module

Installation

Using the Repo Source

github.com/pbs/terraform-aws-lambda-module?ref=x.y.z

Alternative Installation Methods

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

Usage

This module creates a Lambda function with a basic IAM role with SSM parameter authentication configured, along with logging.

By default, the Lambda function that is created also has integration with X-Ray and Lambda Insights enabled.

Integrate this module like so:

module "role" {
  source = "github.com/pbs/terraform-aws-lambda-module?ref=x.y.z"

  handler  = "main"
  filename = "../artifacts/handler.zip"
  runtime  = "go1.x"

  # Tagging Parameters
  organization = var.organization
  environment  = var.environment
  product      = var.product
  repo         = var.repo

  # Optional Parameters
}

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:

x.y.z

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