Skip to content

Latest commit

 

History

History

slack_listener

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Slack Listener Lambda

Lambda function that responds to slack events

Overview

This function is intended for use with this project's API Gateway module. An API Gateway endpoint will be configured as the target slack integration's Interactive Component Request URL, so that on receipt of a slack event this function will:

  1. Determine if the received slack event is valid
  2. And if so provide a target step function with a wait token extracted from the response.

Requirements

No requirements.

Providers

Name Version
aws n/a
random n/a

Resources

Name Type
aws_iam_policy_document.lambda data source
aws_s3_bucket.artifacts data source

Inputs

Name Description Type Default Required
artifacts_bucket_name Name of the artifacts bucket string n/a yes
slack_api_token API token used by the slack client string n/a yes
step_function_arn State machine ARN that the api gateway is able to perform actions against string n/a yes
log_level Log level of the lambda output, one of: Debug, Info, Warning, Error, or Critical string "Info" no
project_name Name of the project string "ldap-maintainer" no
slack_listener_api_endpoint_arn ARN of the slack listener API endpoint string "" no
slack_signing_secret The slack application's signing secret string "" no
tags Map of tags to assign to this module's resources map(string) {} no

Outputs

Name Description
function_arn The ARN of the Lambda function
function_invoke_arn The Invoke ARN of the Lambda function
function_name The name of the Lambda function
function_qualified_arn The qualified ARN of the Lambda function
role_arn The ARN of the IAM role created for the Lambda function
role_name The name of the IAM role created for the Lambda function