Skip to content

Terraform module that deploys a lambda function which will publish open pull requests to Slack

License

Notifications You must be signed in to change notification settings

dwc0011/terraform-aws-codecommit-pr-reminders

 
 

Repository files navigation

terraform-aws-codecommit-pr-reminders

Terraform module to deploy a lambda function that will enumerate CodeCommit repositories and publish the Open PRs to slack

Testing

Manual testing:

# Replace "xxx" with an actual AWS profile, then execute the integration tests.
export AWS_PROFILE=xxx 
make terraform/pytest PYTEST_ARGS="-v --nomock"

For automated testing, PYTEST_ARGS is optional and no profile is needed:

make mockstack/up
make terraform/pytest PYTEST_ARGS="-v"
make mockstack/clean

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Resources

Name Type
aws_iam_policy_document.this data source

Inputs

Name Description Type Default Required
hook_url Slack webhook URL; see https://api.slack.com/incoming-webhooks string n/a yes
dry_run toggle to control dryrun output of the lambda function bool false no
log_level The log level of the lambda function string "INFO" no
name (Optional) Name to associate with the lambda function string "codecommit-pr-reminders" no
schedule (Optional) Schedule expression for CloudWatch event; see https://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html string "cron(0 7 ? * MON-FRI *)" no
tags Tags to add to the supported resources map(any) {} no

Outputs

No outputs.

About

Terraform module that deploys a lambda function which will publish open pull requests to Slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.3%
  • HCL 39.9%
  • Makefile 3.3%
  • Dockerfile 2.5%