Skip to content

Commit 5606c28

Browse files
author
Sanja Kosier
committed
feat(modules/cloud-logs): add list of regions we want to scrape
1 parent 84de7bf commit 5606c28

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

modules/integrations/cloud-logs/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ No modules.
4040

4141
## Inputs
4242

43-
| Name | Description | Type | Default | Required |
44-
|--------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|------|-------------------------------------------------------------|:--------:|
45-
| <a name="input_sysdig_secure_account_id"></a> [sysdig\_secure\_account\_id](#input\_sysdig\_secure\_account\_id) | (Required) ID of the Sysdig Cloud Account to enable Cloud Logs integration for (in case of organization, ID of the Sysdig management account) | `string` | n/a | yes |
46-
| <a name="input_folder_arn"></a> [folder\_arn](#input\_folder\_arn) | (Required) The ARN of your CloudTrail Bucket Folder | `string` | n/a | yes |
47-
| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) Name to be assigned to all child resources. A suffix may be added internally when required. | `map(string)` | <pre>{<br> "product": "sysdig-secure-for-cloud"<br>}</pre> | no |
48-
| <a name="input_name"></a> [name](#input\_name) | (Optional) Sysdig secure-for-cloud tags. always include 'product' default tag for resource-group proper functioning | `string` | sysdig-secure-cloudlogs | no |
43+
| Name | Description | Type | Default | Required |
44+
|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|---------------|-----------------------------------------------------------|:--------:|
45+
| <a name="input_sysdig_secure_account_id"></a> [sysdig\_secure\_account\_id](#input\_sysdig\_secure\_account\_id) | (Required) ID of the Sysdig Cloud Account to enable Cloud Logs integration for (in case of organization, ID of the Sysdig management account) | `string` | n/a | yes |
46+
| <a name="input_folder_arn"></a> [folder\_arn](#input\_folder\_arn) | (Required) The ARN of your CloudTrail Bucket Folder | `string` | n/a | yes |
47+
| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) Name to be assigned to all child resources. A suffix may be added internally when required. | `map(string)` | <pre>{<br> "product": "sysdig-secure-for-cloud"<br>}</pre> | no |
48+
| <a name="input_name"></a> [name](#input\_name) | (Optional) Sysdig secure-for-cloud tags. always include 'product' default tag for resource-group proper functioning | `string` | sysdig-secure-cloudlogs | no |
49+
| <a name="input_regions"></a> [regions](#input\_regions) | (Optional) The list of AWS regions we want to scraper data from | `set(string)` | `[]` | no |
4950

5051
## Outputs
5152

modules/integrations/cloud-logs/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ resource "sysdig_secure_cloud_auth_account_component" "aws_cloud_logs" {
120120
cloudtrailS3Bucket = {
121121
folder_arn = var.folder_arn
122122
role_name = local.role_name
123+
regions = var.regions
123124
}
124125
}
125126
})

modules/integrations/cloud-logs/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ variable "name" {
2222
type = string
2323
default = "sysdig-secure-cloudlogs"
2424
}
25+
26+
variable "regions" {
27+
description = "(Optional) The list of AWS regions we want to scraper data from"
28+
type = set(string)
29+
default = []
30+
}

0 commit comments

Comments
 (0)