-
Notifications
You must be signed in to change notification settings - Fork 10
[docs] RDS readme #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# TERRAFORM AWS RDS LOGS INTEGRATION | ||
|
||
This repo contains a module for resources in [AWS](https://aws.amazon.com/) using [Terraform](https://www.terraform.io/) | ||
to send logs from AWS RDS to [Honeycomb](https://www.honeycomb.io/). | ||
|
||
## How does this work? | ||
|
||
 | ||
|
||
All required resources to setup an integration pipeline to take RDS logs from CloudWatch log groups and send them to | ||
Honeycomb can be created and managed via this module. | ||
|
||
|
||
## Use | ||
|
||
The minimal config is: | ||
|
||
```hcl | ||
source = "../modules/rds-logs" | ||
|
||
name = "rds-logs-integration" | ||
db_engine = "mysql" | ||
db_name = "mysql-db-name" | ||
db_log_types = ["slowquery"] | ||
honeycomb_api_key = var.honeycomb_api_key // Your Honeycomb team's API key | ||
honeycomb_dataset_name = "rds-mysql-logs" | ||
|
||
s3_failure_bucket_arn = var.s3_bucket_arn // The full ARN of the bucket storing Kinesis Firehose failure logs. | ||
} | ||
``` | ||
|
||
Set the API key used by Terraform setting the HONEYCOMB_API_KEY environment variable. | ||
|
||
```bash | ||
export TF_VAR_HONEYCOMB_API_KEY=$HONEYCOMB_API_KEY | ||
``` | ||
|
||
Setup AWS credentials for the intended AWS account where the resources will be created and managed. Please see for | ||
more [details and options](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration) | ||
. | ||
|
||
```bash | ||
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID | ||
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | ||
export AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION | ||
``` | ||
|
||
Now you can run `terraform plan/apply` in sequence. | ||
|
||
For more config options, see [USAGE.md](https://github.com/honeycombio/terraform-aws-integrations/blob/main/USAGE.md). | ||
|
||
## Examples | ||
|
||
Examples of use of this module can be found | ||
in [`examples/`](https://github.com/honeycombio/terraform-aws-integrations/tree/main/examples). | ||
|
||
## Development | ||
|
||
Please see [this](https://github.com/honeycombio/terraform-aws-integrations#development) for details. | ||
|
||
## Contributions | ||
|
||
Features, bug fixes and other changes to this module are gladly accepted. Please open issues or a pull request with your | ||
change. | ||
|
||
All contributions will be released under the Apache License 2.0. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not true. I wonder if we want to 1) provide an example or 2) change (all these modules?) to point people towards the tests instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I think I anticipated #1 happening. The examples directory seems to be a common Terraform convention so it's probably worth including examples there. I should have time to do this late this week/early next week. Will create an Asana ticket to capture the work 👍