File tree Expand file tree Collapse file tree 4 files changed +23
-19
lines changed
aws/kinesisfirehoseformetrics/examples/default Expand file tree Collapse file tree 4 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 1+ data "aws_region" "current" {}
2+
3+ data "aws_caller_identity" "current" {}
4+
5+ data "sumologic_caller_identity" "current" {}
Original file line number Diff line number Diff line change 1+ locals {
2+ # AWS account details
3+ aws_account_id = data. aws_caller_identity . current . account_id
4+ aws_region = data. aws_region . current . name
5+
6+ # S3 bucket inputs
7+ bucket_name = " aws-observability-random-${ random_string . aws_random . id } "
8+ }
Original file line number Diff line number Diff line change 1+ resource "random_string" "aws_random" {
2+ length = 10
3+ upper = false
4+ special = false
5+ }
6+
17module "kinesis_firehose_for_metrics_source_module" {
28 source = " SumoLogic/sumo-logic-integrations/sumologic//aws/kinesisfirehoseformetrics"
39
@@ -6,9 +12,9 @@ module "kinesis_firehose_for_metrics_source_module" {
612 wait_for_seconds = 20
713
814 source_details = {
9- source_name = " <Source-Name> "
10- source_category = " <Source-Category> "
11- description = " <Source-Description> "
15+ source_name = " Cloud Watch Metrics (Region) "
16+ source_category = " aws/observability/cloudwatch/metrics "
17+ description = " This source is created using Sumo Logic terraform AWS Observability module to collect AWS Cloud Watch metrics. "
1218 collector_id = null
1319 limit_to_namespaces = []
1420 sumo_account_id = 926226587429
@@ -21,7 +27,7 @@ module "kinesis_firehose_for_metrics_source_module" {
2127
2228 create_bucket = true
2329 bucket_details = {
24- bucket_name = " <AWS-S3-bucket> "
30+ bucket_name = local.bucket_name
2531 force_destroy_bucket = false
2632 }
2733}
Original file line number Diff line number Diff line change @@ -2,19 +2,4 @@ provider "sumologic" {
22 environment = var. sumologic_environment
33 access_id = var. sumologic_access_id
44 access_key = var. sumologic_access_key
5- }
6-
7- provider "aws" {
8- region = " us-east-1"
9- #
10- # Below properties should be added when you would like to onboard more than one region and account
11- # More Information regarding AWS Profile can be found at -
12- #
13- # Access configuration
14- #
15- # profile = <Provide a profile as setup in AWS CLI>
16- #
17- # Terraform alias
18- #
19- # alias = <Provide a terraform alias for the aws provider. For eg :- production-us-east-1>
205}
You can’t perform that action at this time.
0 commit comments