Skip to content

Latest commit

 

History

History

slack_notifier

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Slack Notifier Lambda

Lambda that updates slack and a target step function

Overview

This function's sole purpose is to format the results of the LDAP Query function combined with this project's step function task token into an actionable message.

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
invoke_base_url Base URL of the api gateway endpoint to pass to slack for approve/deny actions string n/a yes
sfn_activity_arn ARN of the state machine activity to query for a taskToken string n/a yes
slack_api_token API token used by the slack client string n/a yes
slack_channel_id Channel that the slack notifier will post to string n/a yes
days_since_pwdlastset Number of days since the pwdLastSet ldap attribute has been updated. This metric is used to disable the target ldap object. number 120 no
filter_prefixes (Optional) List of three letter user name prefixes to filter out of the user search results list(string) [] no
log_level (Optional) 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
tags Map of tags to assign to this module's resources map(string) {} no
timezone (Optional)Timezone that the slack notifications will be timestamped with string "US/Eastern" 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