Skip to content
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

Add the InfluxDB Timestream connector #201

Draft
wants to merge 9 commits into
base: mainline
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
bin/
obj/

# Ignore common go files
go.mod
go.sum

# Ignore common Java files
.idea/
*.iml
Expand Down
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/awslabs/git-secrets
rev: 5357e18bc27b42a827b6780564ea873a72ca1f01
hooks:
- id: git-secrets
entry: /usr/bin/env
verbose: True
args:
# Using a bash script to ensure aws secrets rules is always installed.
- bash
- -c
- |
echo "Scanning with git-secrets..."
git-secrets --register-aws
if ! git-secrets --pre_commit_hook; then
echo "Error: Potential secrets detected. Please review your changes."
exit 1
fi
echo "No secrets detected."
17 changes: 17 additions & 0 deletions DEVELOPER_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Amazon Timestream Tools and Samples Developer Guide

## Pre-Commit Hook

A pre-commit hook configuration is provided in the `.pre-commit-config.yaml` file.

This pre-commit hook is configured to scan for secrets with [`git-secrets`](https://github.com/awslabs/git-secrets), to make sure no secrets are committed to this repository.

To use the pre-commit hook:

1. Install [`pre-commit`](https://pre-commit.com/#install).
2. In the root of this repository, run;
```
pre-commit install
```
3. Now, whenever `git commit` is run, `git-secrets` will scan for secrets.

Loading