57 lines
2.8 KiB
Markdown
57 lines
2.8 KiB
Markdown
|
<!-- This readme file is generated with terraform-docs -->
|
||
|
|
||
|
This module configure CloudwatchLog and stream logs to s3 bucket via Kinesis Firehose
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
| Name | Version |
|
||
|
|------|---------|
|
||
|
| terraform | ~> 1.3.0 |
|
||
|
| aws | >= 5.0 |
|
||
|
|
||
|
## Providers
|
||
|
|
||
|
| Name | Version |
|
||
|
|------|---------|
|
||
|
| aws | >= 5.0 |
|
||
|
| random | n/a |
|
||
|
|
||
|
## Modules
|
||
|
|
||
|
No modules.
|
||
|
|
||
|
## Resources
|
||
|
|
||
|
| Name | Type |
|
||
|
|------|------|
|
||
|
| [aws_cloudwatch_log_group.firehose-log](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
|
||
|
| [aws_cloudwatch_log_subscription_filter.cwl-sub-filter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_subscription_filter) | resource |
|
||
|
| [aws_iam_policy.cwlog-role-policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
|
||
|
| [aws_iam_policy.firehose-role-policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
|
||
|
| [aws_iam_role.cwlog-stream-role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
|
||
|
| [aws_iam_role.firehose-stream-iam-role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
|
||
|
| [aws_iam_role_policy_attachment.cwlog-role-policy-attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
|
||
|
| [aws_iam_role_policy_attachment.firehose-role-policy-attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
|
||
|
| [aws_kinesis_firehose_delivery_stream.cwl-s3-firehose-stream](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kinesis_firehose_delivery_stream) | resource |
|
||
|
| [random_id.rid](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource |
|
||
|
| [aws_caller_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
|
||
|
|
||
|
## Inputs
|
||
|
|
||
|
| Name | Description | Type | Default | Required |
|
||
|
|------|-------------|------|---------|:--------:|
|
||
|
| cwl-region | AWS region where Cloudwatch LogGroup resides. Needed for setting up cwlog-stream-role | `string` | n/a | yes |
|
||
|
| dest-bucket-arn | Destination S3 bucket ARN | `string` | n/a | yes |
|
||
|
| dest-bucket-kmskey-arn | KMS key ARN for destination bucket | `string` | n/a | yes |
|
||
|
| dest-bucket-prefix | S3 object prefix for this stream | `string` | n/a | yes |
|
||
|
| firehose-kmskey-arn | KMS Key arn for Firehose | `string` | n/a | yes |
|
||
|
| source-cwlgroup-name | Name of source CloudwatchLog group | `string` | n/a | yes |
|
||
|
| stream-name | Name of Kinesis Data Firehose delivery stream | `string` | n/a | yes |
|
||
|
|
||
|
## Outputs
|
||
|
|
||
|
No outputs.
|
||
|
|
||
|
---
|
||
|
## Authorship
|
||
|
This module was developed by Rackspace.
|