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
|[aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity)| data source |
58
+
|[aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)| data source |
59
+
|[sumologic_caller_identity.current](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/data-sources/caller_identity)| data source |
27
60
28
61
## Inputs
29
62
30
63
| Name | Description | Type | Default | Required |
| bucket\_details | Provide details for the AWS S3 bucket. If not provided, existing will be used. | <pre>object({<br> bucket_name = string<br> force_destroy_bucket = bool<br> })</pre> | <pre>{<br> "bucket_name": "sumologic-kinesis-firehose-metrics-random-id",<br> "force_destroy_bucket": true<br>}</pre> | no |
33
-
| collector\_details | Provide details for the Sumo Logic collector. If not provided, then defaults will be used. | <pre>object({<br> collector_name = string<br> description = string<br> fields = map(string)<br> })</pre> | <pre>{<br> "collector_name": "SumoLogic Kinesis Firehose for Metrics Collector <RandomID>",<br> "description": "This collector is created using Sumo Logic terraform AWS Kinesis Firehose for metrics module to collect AWS cloudwatch metrics.",<br> "fields": {}<br>}</pre> | no |
34
-
| create\_bucket | Provide "true" if you would like to create AWS S3 bucket to store failed logs. Provide "bucket\_details" if set to "false". |`bool`|`true`| no |
35
-
| create\_collector | Provide "true" if you would like to create the Sumo Logic Collector. |`bool`| n/a | yes |
36
-
| source\_details | Provide details for the Sumo Logic Kinesis Firehose for Metrics source. If not provided, then defaults will be used. | <pre>object({<br> source_name = string<br> source_category = string<br> collector_id = string<br> description = string<br> sumo_account_id = number<br> limit_to_namespaces = list(string)<br> fields = map(string)<br> iam_details = object({<br> create_iam_role = bool<br> iam_role_arn = string<br> })<br> })</pre> | <pre>{<br> "collector_id": "",<br> "description": "This source is created using Sumo Logic terraform AWS Kinesis Firehose for metrics module to collect AWS Cloudwatch metrics.",<br> "fields": {},<br> "iam_details": {<br> "create_iam_role": true,<br> "iam_role_arn": null<br> },<br> "limit_to_namespaces": [],<br> "source_category": "Labs/aws/cloudwatch/metrics",<br> "source_name": "Kinesis Firehose for Metrics Source",<br> "sumo_account_id": 926226587429<br>}</pre> | no |
37
-
| sumologic\_organization\_id | Appears on the Account Overview page that displays information about your Sumo Logic organization. Used for IAM Role in Sumo Logic AWS Sources. |`string`| n/a | yes |
38
-
| wait\_for\_seconds | wait\_for\_seconds is used to delay sumo logic source creation. This helps persisting IAM role in AWS system.<br> Default value is 180 seconds.<br> If the AWS IAM role is created outside the module, the value can be decreased to 1 second. |`number`|`180`| no |
65
+
|<aname="input_bucket_details"></a> [bucket\_details](#input\_bucket\_details)| Provide details for the AWS S3 bucket. If not provided, existing will be used. | <pre>object({<br> bucket_name = string<br> force_destroy_bucket = bool<br> })</pre> | <pre>{<br> "bucket_name": "sumologic-kinesis-firehose-metrics-random-id",<br> "force_destroy_bucket": true<br>}</pre> | no |
66
+
|<aname="input_collector_details"></a> [collector\_details](#input\_collector\_details)| Provide details for the Sumo Logic collector. If not provided, then defaults will be used. | <pre>object({<br> collector_name = string<br> description = string<br> fields = map(string)<br> })</pre> | <pre>{<br> "collector_name": "SumoLogic Kinesis Firehose for Metrics Collector <RandomID>",<br> "description": "This collector is created using Sumo Logic terraform AWS Kinesis Firehose for metrics module to collect AWS cloudwatch metrics.",<br> "fields": {}<br>}</pre> | no |
67
+
|<aname="input_create_bucket"></a> [create\_bucket](#input\_create\_bucket)| Provide "true" if you would like to create AWS S3 bucket to store failed logs. Provide "bucket\_details" if set to "false". |`bool`|`true`| no |
68
+
|<aname="input_create_collector"></a> [create\_collector](#input\_create\_collector)| Provide "true" if you would like to create the Sumo Logic Collector. |`bool`| n/a | yes |
69
+
| <a name="input_source_details"></a> [source\_details](#input\_source\_details) | Provide details for the Sumo Logic Kinesis Firehose for Metrics source. If not provided, then defaults will be used. | <pre>object({<br> source_name = string<br> source_category = string<br> collector_id = string<br> description = string<br> sumo_account_id = number<br> limit_to_namespaces = list(string)<br> fields = map(string)<br> iam_details = object({<br> create_iam_role = bool<br> iam_role_arn = string<br> })<br> })</pre> | <pre>{<br> "collector_id": "",<br> "description": "This source is created using Sumo Logic terraform AWS Kinesis Firehose for metrics module to collect AWS Cloudwatch metrics.",<br> "fields": {},<br> "iam_details": {<br> "create_iam_role": true,<br> "iam_role_arn": null<br> },<br> "limit_to_namespaces": [],<br> "source_category": "Labs/aws/cloudwatch/metrics",<br> "source_name": "Kinesis Firehose for Metrics Source",<br> "sumo_account_id": 926226587429<br>}</pre> | no |
70
+
|<aname="input_sumologic_organization_id"></a> [sumologic\_organization\_id](#input\_sumologic\_organization\_id)| Appears on the Account Overview page that displays information about your Sumo Logic organization. Used for IAM Role in Sumo Logic AWS Sources. |`string`| n/a | yes |
71
+
|<aname="input_wait_for_seconds"></a> [wait\_for\_seconds](#input\_wait\_for\_seconds)| wait\_for\_seconds is used to delay sumo logic source creation. This helps persisting IAM role in AWS system.<br> Default value is 180 seconds.<br> If the AWS IAM role is created outside the module, the value can be decreased to 1 second. |`number`|`180`| no |
39
72
40
73
## Outputs
41
74
42
75
| Name | Description |
43
76
|------|-------------|
44
-
| aws\_cloudwatch\_log\_group | AWS Log group created to attach to delivery stream. |
45
-
| aws\_cloudwatch\_log\_stream | AWS Log stream created to attach to log group. |
46
-
| aws\_cloudwatch\_metric\_stream | CloudWatch metrics stream to send metrics. |
47
-
| aws\_iam\_role | AWS IAM role with permission to setup kinesis firehose metrics. |
48
-
| aws\_kinesis\_firehose\_delivery\_stream | AWS Kinesis firehose delivery stream to send metrics to Sumo Logic. |
49
-
| aws\_s3\_bucket | AWS S3 Bucket name created to Store the Failed data. |
50
-
| random\_string | Random String value created. |
51
-
| source\_aws\_iam\_role | AWS IAM role with permission to setup Sumo Logic permissions. |
|<aname="output_aws_cloudwatch_log_group"></a> [aws\_cloudwatch\_log\_group](#output\_aws\_cloudwatch\_log\_group)| AWS Log group created to attach to delivery stream. |
78
+
|<aname="output_aws_cloudwatch_log_stream"></a> [aws\_cloudwatch\_log\_stream](#output\_aws\_cloudwatch\_log\_stream)| AWS Log stream created to attach to log group. |
79
+
|<aname="output_aws_cloudwatch_metric_stream"></a> [aws\_cloudwatch\_metric\_stream](#output\_aws\_cloudwatch\_metric\_stream)| CloudWatch metrics stream to send metrics. |
80
+
|<aname="output_aws_iam_role"></a> [aws\_iam\_role](#output\_aws\_iam\_role)| AWS IAM role with permission to setup kinesis firehose metrics. |
81
+
|<aname="output_aws_kinesis_firehose_delivery_stream"></a> [aws\_kinesis\_firehose\_delivery\_stream](#output\_aws\_kinesis\_firehose\_delivery\_stream)| AWS Kinesis firehose delivery stream to send metrics to Sumo Logic. |
82
+
|<aname="output_aws_s3_bucket"></a> [aws\_s3\_bucket](#output\_aws\_s3\_bucket)| AWS S3 Bucket name created to Store the Failed data. |
83
+
|<aname="output_random_string"></a> [random\_string](#output\_random\_string)| Random String value created. |
84
+
|<aname="output_source_aws_iam_role"></a> [source\_aws\_iam\_role](#output\_source\_aws\_iam\_role)| AWS IAM role with permission to setup Sumo Logic permissions. |
| <aname="input_sumologic_environment"></a> [sumologic\_environment](#input\_sumologic\_environment)| Enter au, ca, de, eu, jp, us2, in, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security|`string`| n/a | yes |
32
+
| <aname="input_sumologic_organization_id"></a> [sumologic\_organization\_id](#input\_sumologic\_organization\_id)| You can find your org on the Preferences page in the Sumo Logic UI. For more information, see the Preferences Page topic. Your org ID will be used to configure the IAM Role for Sumo Logic AWS Sources."<br> For more details, visit https://help.sumologic.com/01Start-Here/05Customize-Your-Sumo-Logic-Experience/Preferences-Page|`string`| n/a | yes |
sumologic_environment="<YOUR SUMO DEPLOYMENT>"# Please replace <YOUR SUMO DEPLOYMENT> (including brackets) with au, ca, de, eu, jp, us2, in, fed or us1.
4
+
sumologic_access_id="<YOUR SUMO ACCESS ID>"# Please replace <YOUR SUMO ACCESS ID> (including brackets) with your Sumo Logic Access ID.
5
+
sumologic_access_key="<YOUR SUMO ACCESS KEY>"# Please replace <YOUR SUMO ACCESS KEY> (including brackets) with your Sumo Logic Access KEY.
6
+
sumologic_organization_id="<YOUR SUMO ORG ID>"# Please replace <YOUR SUMO ORG ID> (including brackets) with your Sumo Logic Organization ID.
description="Enter au, ca, de, eu, jp, us2, in, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security"
4
+
5
+
validation {
6
+
condition=contains([
7
+
"au",
8
+
"ca",
9
+
"de",
10
+
"eu",
11
+
"jp",
12
+
"us1",
13
+
"us2",
14
+
"in",
15
+
"fed"], var.sumologic_environment)
16
+
error_message="The value must be one of au, ca, de, eu, jp, us1, us2, in, or fed."
error_message="The SumoLogic access key must contain valid characters."
38
+
}
39
+
}
40
+
41
+
variable"sumologic_organization_id" {
42
+
type=string
43
+
description=<<EOT
44
+
You can find your org on the Preferences page in the Sumo Logic UI. For more information, see the Preferences Page topic. Your org ID will be used to configure the IAM Role for Sumo Logic AWS Sources."
45
+
For more details, visit https://help.sumologic.com/01Start-Here/05Customize-Your-Sumo-Logic-Experience/Preferences-Page
0 commit comments