You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-21Lines changed: 51 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,67 @@
2
2
3
3
Get notified when users are taking actions in the AWS Console. More [here](https://medium.com/cloudandthings/aws-clickoops-1b8cabc9b8e3)
4
4
## 🏗️ Module Usage
5
-
### Requirements
6
5
7
6
It is not strictly a requirement, that you use this with AWS ControlTower. The module has only been tested in the Log Archive account that ships with AWS ControTower.
|[aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity)| data source |
36
+
|[aws_iam_policy_document.lambda_permissions](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
37
+
|[aws_s3_bucket.cloudtrail_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/s3_bucket)| data source |
38
+
39
+
## Inputs
17
40
18
41
| Name | Description | Type | Default | Required |
| cloudtrail\_bucket\_name | Bucket containing the Cloudtrail logs that you want to process. ControlTower bucket name follows this naming convention `aws-controltower-logs-{{account_id}}-{{region}}`|`string`| n/a | yes |
21
-
| webhook | The webhook URL for notifications. https://api.slack.com/messaging/webhooks|`string`| n/a | yes |
22
-
| region | Region where this will be deployed. Used for [getting the correct lambda layer]|`string`| n/a | yes |
23
-
| message\_format | Where do you want to send this message? Only slack, for now. |`string`|`"slack"`| no |
24
-
| excluded\_accounts | List of accounts that be excluded for scans on manual actions. These take precidence over `included_accounts`|`list(string)`|`[]`| no |
25
-
| included\_accounts | List of accounts that be scanned to manual actions. If empty will scan all accounts. |`list(string)`|`[]`| no |
26
-
| excluded\_users | List of email addresses will not be reported on when practicing ClickOps. |`list(string)`|`[]`| no |
27
-
| included\_users | List of emails that be scanned to manual actions. If empty will scan all emails. |`list(string)`|`[]`| no |
28
-
| naming\_prefix | Resources will be prefixed with this |`string`|`"clickops-notifier"`| no |
29
-
| tags | Tags to add to resources in addition to the default\_tags for the provider |`map(string)`|`{}`| no |
30
-
| event\_processing\_timeout | Maximum number of seconds the lambda is allowed to run and number of seconds events should be hidden in SQS after being picked up my Lambda. |`number`|`60`| no |
31
-
| event\_batch\_size | Batch events into chunks of `event_batch_size`|`number`|`10`| no |
32
-
| event\_maximum\_batching\_window | Maximum batching window in seconds. |`number`|`300`| no |
33
-
| log\_retention\_in\_days | Number of days to keep CloudWatch logs |`number`|`14`| no |
43
+
| <aname="input_additional_iam_policy_statements"></a> [additional\_iam\_policy\_statements](#input\_additional\_iam\_policy\_statements)| Map of dynamic policy statements to attach to Lambda Function role |`any`|`{}`| no |
44
+
| <aname="input_cloudtrail_bucket_name"></a> [cloudtrail\_bucket\_name](#input\_cloudtrail\_bucket\_name)| Bucket containing the Cloudtrail logs that you want to process. ControlTower bucket name follows this naming convention `aws-controltower-logs-{{account_id}}-{{region}}`|`string`| n/a | yes |
45
+
| <aname="input_event_batch_size"></a> [event\_batch\_size](#input\_event\_batch\_size)| Batch events into chunks of `event_batch_size`|`number`|`10`| no |
46
+
| <aname="input_event_maximum_batching_window"></a> [event\_maximum\_batching\_window](#input\_event\_maximum\_batching\_window)| Maximum batching window in seconds. |`number`|`300`| no |
47
+
| <aname="input_event_processing_timeout"></a> [event\_processing\_timeout](#input\_event\_processing\_timeout)| Maximum number of seconds the lambda is allowed to run and number of seconds events should be hidden in SQS after being picked up my Lambda. |`number`|`60`| no |
48
+
| <aname="input_excluded_accounts"></a> [excluded\_accounts](#input\_excluded\_accounts)| List of accounts that be excluded for scans on manual actions. These take precidence over `included_accounts`|`list(string)`|`[]`| no |
49
+
| <aname="input_excluded_users"></a> [excluded\_users](#input\_excluded\_users)| List of email addresses will not be reported on when practicing ClickOps. |`list(string)`|`[]`| no |
50
+
| <aname="input_included_accounts"></a> [included\_accounts](#input\_included\_accounts)| List of accounts that be scanned to manual actions. If empty will scan all accounts. |`list(string)`|`[]`| no |
51
+
| <aname="input_included_users"></a> [included\_users](#input\_included\_users)| List of emails that be scanned to manual actions. If empty will scan all emails. |`list(string)`|`[]`| no |
52
+
| <aname="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime)| The lambda runtime to use |`string`|`"python3.9"`| no |
53
+
| <aname="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days)| Number of days to keep CloudWatch logs |`number`|`14`| no |
54
+
| <aname="input_message_format"></a> [message\_format](#input\_message\_format)| Where do you want to send this message? Only slack, for now. |`string`|`"slack"`| no |
55
+
| <aname="input_naming_prefix"></a> [naming\_prefix](#input\_naming\_prefix)| Resources will be prefixed with this |`string`|`"clickops-notifier"`| no |
56
+
| <aname="input_tags"></a> [tags](#input\_tags)| Tags to add to resources in addition to the default\_tags for the provider |`map(string)`|`{}`| no |
57
+
| <aname="input_webhook"></a> [webhook](#input\_webhook)| The webhook URL for notifications. https://api.slack.com/messaging/webhooks|`string`| n/a | yes |
0 commit comments