Terraform module to deploy a lambda function that will enumerate CodeCommit repositories and publish the Open PRs to slack
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
| Name | Version |
|---|---|
| terraform | >= 0.12 |
| Name | Version |
|---|---|
| aws | n/a |
| Name | Type |
|---|---|
| aws_iam_policy_document.this | data source |
| 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 |
No outputs.