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 |
55
+
|[aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)| data source |
56
+
|[aws_serverlessapplicationrepository_application.app](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/serverlessapplicationrepository_application)| data source |
57
+
|[sumologic_caller_identity.current](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/data-sources/caller_identity)| data source |
26
58
27
59
## Inputs
28
60
29
61
| Name | Description | Type | Default | Required |
| auto\_enable\_logs\_subscription | New - Automatically subscribes new log groups to send logs to Sumo Logic.<br> Existing - Automatically subscribes existing log groups to send logs to Sumo Logic.<br> Both - Automatically subscribes new and existing log groups.<br> None - Skips Automatic subscription. |`string`|`"Both"`| no |
32
-
| auto\_enable\_logs\_subscription\_options | filter - Enter regex for matching logGroups. Regex will check for the name. Visit https://help.sumologic.com/03Send-Data/Collect-from-Other-Data-Sources/Auto-Subscribe_AWS_Log_Groups_to_a_Lambda_Function#Configuring_parameters| <pre>object({<br> filter = string<br> })</pre> | <pre>{<br> "filter": "lambda"<br>}</pre> | no |
33
-
| 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-logs-random-id",<br> "force_destroy_bucket": true<br>}</pre> | no |
34
-
| 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 Logs Collector <RandomID>",<br> "description": "This collector is created using Sumo Logic terraform AWS Kinesis Firehose for logs module to collect AWS cloudwatch logs.",<br> "fields": {}<br>}</pre> | no |
35
-
| create\_bucket | Provide "true" if you would like to create AWS S3 bucket to store logs. Provide "bucket\_details" if set to "false". |`bool`|`true`| no |
36
-
| create\_collector | Provide "true" if you would like to create the Sumo Logic Collector. |`bool`| n/a | yes |
37
-
| source\_details | Provide details for the Sumo Logic Kinesis Firehose for Logs 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> fields = map(string)<br> })</pre> | <pre>{<br> "collector_id": "",<br> "description": "This source is created using Sumo Logic terraform AWS Kinesis Firehose for logs module to collect AWS Cloudwatch logs.",<br> "fields": {},<br> "source_category": "Labs/aws/cloudwatch/logs",<br> "source_name": "Kinesis Firehose for Logs Source"<br>}</pre> | no |
63
+
| <aname="input_app_semantic_version"></a> [app\_semantic\_version](#input\_app\_semantic\_version)| Provide the latest version of Serverless Application Repository 'sumologic-loggroup-connector'. |`string`|`"1.0.7"`| no |
64
+
| <aname="input_auto_enable_logs_subscription"></a> [auto\_enable\_logs\_subscription](#input\_auto\_enable\_logs\_subscription)| New - Automatically subscribes new log groups to send logs to Sumo Logic.<br> Existing - Automatically subscribes existing log groups to send logs to Sumo Logic.<br> Both - Automatically subscribes new and existing log groups.<br> None - Skips Automatic subscription. |`string`|`"Both"`| no |
65
+
| <aname="input_auto_enable_logs_subscription_options"></a> [auto\_enable\_logs\_subscription\_options](#input\_auto\_enable\_logs\_subscription\_options)| filter - Enter regex for matching logGroups. Regex will check for the name. Visit https://help.sumologic.com/03Send-Data/Collect-from-Other-Data-Sources/Auto-Subscribe_AWS_Log_Groups_to_a_Lambda_Function#Configuring_parameters| <pre>object({<br> filter = string<br> })</pre> | <pre>{<br> "filter": "lambda"<br>}</pre> | no |
66
+
| <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-logs-random-id",<br> "force_destroy_bucket": true<br>}</pre> | no |
67
+
| <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 Logs Collector <RandomID>",<br> "description": "This collector is created using Sumo Logic terraform AWS Kinesis Firehose for logs module to collect AWS cloudwatch logs.",<br> "fields": {}<br>}</pre> | no |
68
+
| <aname="input_create_bucket"></a> [create\_bucket](#input\_create\_bucket)| Provide "true" if you would like to create AWS S3 bucket to store logs. Provide "bucket\_details" if set to "false". |`bool`|`true`| no |
69
+
| <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 |
70
+
| <aname="input_source_details"></a> [source\_details](#input\_source\_details)| Provide details for the Sumo Logic Kinesis Firehose for Logs 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> fields = map(string)<br> })</pre> | <pre>{<br> "collector_id": "",<br> "description": "This source is created using Sumo Logic terraform AWS Kinesis Firehose for logs module to collect AWS Cloudwatch logs.",<br> "fields": {},<br> "source_category": "Labs/aws/cloudwatch/logs",<br> "source_name": "Kinesis Firehose for Logs Source"<br>}</pre> | no |
38
71
39
72
## Outputs
40
73
41
74
| Name | Description |
42
75
|------|-------------|
43
-
| aws\_cloudwatch\_log\_group | AWS Log group created to attach to delivery stream. |
44
-
| aws\_cloudwatch\_log\_stream | AWS Log stream created to attach to log group. |
45
-
| aws\_iam\_role | AWS IAM role with permission to setup kinesis firehose logs. |
46
-
| aws\_kinesis\_firehose\_delivery\_stream | AWS Kinesis firehose delivery stream to send logs to Sumo Logic. |
47
-
| aws\_s3\_bucket | AWS S3 Bucket name created to Store the Failed data. |
48
-
| aws\_serverlessapplicationrepository\_cloudformation\_stack | AWS CloudFormation stack for Auto Enable logs subscription. |
|<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. |
77
+
|<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. |
78
+
|<aname="output_aws_iam_role"></a> [aws\_iam\_role](#output\_aws\_iam\_role)| AWS IAM role with permission to setup kinesis firehose logs. |
79
+
|<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 logs to Sumo Logic. |
80
+
|<aname="output_aws_s3_bucket"></a> [aws\_s3\_bucket](#output\_aws\_s3\_bucket)| AWS S3 Bucket name created to Store the Failed data. |
81
+
|<aname="output_aws_serverlessapplicationrepository_cloudformation_stack"></a> [aws\_serverlessapplicationrepository\_cloudformation\_stack](#output\_aws\_serverlessapplicationrepository\_cloudformation\_stack)| AWS CloudFormation stack for Auto Enable logs subscription. |
82
+
|<aname="output_random_string"></a> [random\_string](#output\_random\_string)| Random String value created. |
| <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