diff --git a/README.md b/README.md index 489cd9f..334829c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@   -Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to forward logs from Amazon CloudWatch to [Axiom](https://axiom.co). It includes a Lambda function to handle the forwarding and stacks to create CloudWatch log group subscription filters for both existing and future log groups. +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). + ## Documentation diff --git a/examples/forwarder/README.md b/examples/forwarder/README.md new file mode 100644 index 0000000..334829c --- /dev/null +++ b/examples/forwarder/README.md @@ -0,0 +1,18 @@ +# Axiom CloudWatch Forwarder Terraform Module + + + + + + + Axiom.co banner + + +  + +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). + + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch). diff --git a/examples/forwarder/main.tf b/examples/forwarder/main.tf index 59f9174..e88525b 100644 --- a/examples/forwarder/main.tf +++ b/examples/forwarder/main.tf @@ -3,23 +3,23 @@ resource "axiom_dataset" "lambda_forwarder" { description = "Test" } -module "forwarder" { - source = "../../modules/forwarder" +module "forwarder_example" { + source = "axiomhq/axiom-cloudwatch-forwarder/aws//modules/forwarder" axiom_dataset = axiom_dataset.lambda_forwarder.name axiom_token = "" prefix = "axiom-cloudwatch-forwarder" } -module "subscriber" { - source = "../../modules/subscriber" - prefix = "axiom-cloudwatch-tf-test" +module "subscriber_example" { + source = "axiomhq/axiom-cloudwatch-forwarder/aws//modules/subscriber" + prefix = "axiom-cloudwatch-forwarder" forwarder_lambda_arn = module.forwarder.lambda_arn log_groups_prefix = "/aws/lambda/" } -module "listener" { - source = "../../modules/listener" - prefix = "axiom-cloudwatch-tf-test" +module "listener_example" { + source = "axiomhq/axiom-cloudwatch-forwarder/aws//modules/listener" + prefix = "axiom-cloudwatch-forwarder" forwarder_lambda_arn = module.forwarder.lambda_arn log_groups_prefix = "/aws/lambda/" } diff --git a/examples/unsubscriber/README.md b/examples/unsubscriber/README.md new file mode 100644 index 0000000..334829c --- /dev/null +++ b/examples/unsubscriber/README.md @@ -0,0 +1,18 @@ +# Axiom CloudWatch Forwarder Terraform Module + + + + + + + Axiom.co banner + + +  + +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). + + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch). diff --git a/examples/unsubscriber/main.tf b/examples/unsubscriber/main.tf index c839c11..d8431dd 100644 --- a/examples/unsubscriber/main.tf +++ b/examples/unsubscriber/main.tf @@ -1,5 +1,5 @@ -module "unsubscriber" { - source = "../../modules/unsubscriber" +module "unsubscriber_example" { + source = "axiomhq/axiom-cloudwatch-forwarder/aws//modules/unsubscriber" prefix = "axiom-cloudwatch-forwarder" forwarder_lambda_arn = "Forwarder lambda ARN" log_groups_prefix = "/aws/lambda/" diff --git a/modules/forwarder/README.md b/modules/forwarder/README.md index ca95146..334829c 100644 --- a/modules/forwarder/README.md +++ b/modules/forwarder/README.md @@ -1,14 +1,18 @@ -# Axiom Cloudwatch Forwarder +# Axiom CloudWatch Forwarder Terraform Module -Forward logs from AWS Cloudwatch to Axiom. + + + + + + Axiom.co banner + + +  -## Setup +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). -```hcl -module "forwarder" { - source = "https://github.com/axiomhq/axiom-cloudwatch-forwarder/tree/main/modules/forwarder" - prefix = "axiom-cloudwatch-forwarder" - axiom_dataset = "DATASET_NAME" - axiom_token = "xaat-***" -} -``` + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch). diff --git a/modules/listener/README.md b/modules/listener/README.md index f111cce..334829c 100644 --- a/modules/listener/README.md +++ b/modules/listener/README.md @@ -1,14 +1,18 @@ -# Axiom Cloudwatch Forwarder - Listener +# Axiom CloudWatch Forwarder Terraform Module -This module sets up a lambda function that listens to Cloudwatch logs and subscribers the Axiom's Forwarder to these groups. + + + + + + Axiom.co banner + + +  -## Setup +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). -```hcl -module "listener" { - source = "https://github.com/axiomhq/axiom-cloudwatch-forwarder/tree/main/modules/listener" - prefix = "axiom-cloudwatch-forwarder" - forwarder_lambda_arn = module.forwarder.lambda_arn - log_groups_prefix = "/aws/lambda/" -} -``` + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch). diff --git a/modules/subscriber/README.md b/modules/subscriber/README.md index d11e02e..334829c 100644 --- a/modules/subscriber/README.md +++ b/modules/subscriber/README.md @@ -1,15 +1,18 @@ -# Axiom Cloudwatch Forwarder - Subscriber +# Axiom CloudWatch Forwarder Terraform Module -Creates a Lambda function that subscribers the Forwarder to AWS Cloudwatch log groups. + + + + + + Axiom.co banner + + +  -## Setup +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). -```hcl -module "subscriber" { - source = "https://github.com/axiomhq/axiom-cloudwatch-forwarder/tree/main/modules/subscriber" - prefix = "axiom-cloudwatch-forwarder" - axiom_dataset = "DATASET_NAME" - log_groups_prefix = "/aws/lambda/" - forwarder_lambda_arn = module.forwarder.lambda_arn -} -``` + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch). diff --git a/modules/unsubscriber/README.md b/modules/unsubscriber/README.md index e9f14bf..334829c 100644 --- a/modules/unsubscriber/README.md +++ b/modules/unsubscriber/README.md @@ -1,14 +1,18 @@ -# Axiom Cloudwatch Forwarder - Unubscriber +# Axiom CloudWatch Forwarder Terraform Module -Creates a Lambda function that removes log groups subscriptions from the Forwarder. + + + + + + Axiom.co banner + + +  -## Setup +Axiom CloudWatch Forwarder Terraform module is a set of easy-to-use Terraform modules to install [Axiom Cloudwatch Forwarder](http://github.com/axiomhq/axiom-cloudwatch-forwarder). -```hcl -module "unsubscriber" { - source = "https://github.com/axiomhq/axiom-cloudwatch-forwarder/tree/main/modules/unsubscriber" - prefix = "axiom-cloudwatch-forwarder" - log_groups_prefix = "/aws/lambda/" - forwarder_lambda_arn = module.forwarder.lambda_arn -} -``` + +## Documentation + +For more information about how to set up and use the Axiom CloudWatch Forwarder, see the [Axiom documentation](https://axiom.co/docs/send-data/cloudwatch).