Skip to content

Commit 1a92d77

Browse files
cbruno10kaidaguerregraza-iojudellmisraved
authored
Add initial tables and sources (#62)
Co-authored-by: kai <[email protected]> Co-authored-by: Graza <[email protected]> Co-authored-by: Jon Udell <[email protected]> Co-authored-by: Ved misra <[email protected]> Co-authored-by: ParthaI <[email protected]> Co-authored-by: misraved <[email protected]> Co-authored-by: Puskar Basu <[email protected]> Co-authored-by: Priyanka Chatterjee <[email protected]> Co-authored-by: Keep Focused <[email protected]>
1 parent c7f3755 commit 1a92d77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4364
-697
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Tailpipe version (`tailpipe -v`)**
14+
Example: v0.3.0
15+
16+
**Plugin version (`tailpipe plugin list`)**
17+
Example: v0.5.0
18+
19+
**To reproduce**
20+
Steps to reproduce the behavior (please include relevant code and/or commands).
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Additional context**
26+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions
4+
url: https://turbot.com/community/join
5+
about: GitHub issues in this repository are only intended for bug reports and feature requests. Other issues will be closed. Please ask and answer questions through the Turbot Slack community.
6+
- name: Tailpipe CLI Bug Reports and Feature Requests
7+
url: https://github.com/turbot/tailpipe/issues/new/choose
8+
about: Tailpipe CLI has its own codebase. Bug reports and feature requests for those pieces of functionality should be directed to that repository.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature request - New table
3+
about: Suggest a new table for this project
4+
title: Add table aws_<log_type>
5+
labels: enhancement, new table
6+
assignees: ''
7+
8+
---
9+
10+
**References**
11+
Add any related links that will help us understand the resource, including vendor documentation, related GitHub issues, and Go SDK documentation.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Example query results
2+
<details>
3+
<summary>Results</summary>
4+
5+
```
6+
Add example SQL query results here (please include the input queries as well)
7+
```
8+
</details>

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gomod" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
pull-request-branch-name:
13+
separator: "-"
14+
labels:
15+
- "dependencies"

.github/workflows/golangci-lint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
golangci_lint_workflow:
12+
uses: turbot/steampipe-workflows/.github/workflows/golangci-lint.yml@main
13+
with:
14+
timeout: 20m
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Build and Deploy OCI Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
registry_publish_workflow_ghcr:
10+
uses: turbot/steampipe-workflows/.github/workflows/registry-publish-ghcr.yml@main
11+
secrets: inherit
12+
with:
13+
releaseTimeout: 60m
14+
pipeling: tailpipe

.github/workflows/stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Stale Issues and PRs
2+
on:
3+
schedule:
4+
- cron: "30 23 * * *"
5+
workflow_dispatch:
6+
inputs:
7+
dryRun:
8+
description: Set to true for a dry run
9+
required: false
10+
default: "false"
11+
type: string
12+
13+
jobs:
14+
stale_workflow:
15+
uses: turbot/steampipe-workflows/.github/workflows/stale.yml@main
16+
with:
17+
dryRun: ${{ github.event.inputs.dryRun }}

.github/workflows/sync-labels.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Sync Labels
2+
on:
3+
schedule:
4+
- cron: "30 22 * * 1"
5+
workflow_dispatch:
6+
7+
jobs:
8+
sync_labels_workflow:
9+
uses: turbot/steampipe-workflows/.github/workflows/sync-labels.yml@main

.goreleaser.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
- go mod tidy
6+
builds:
7+
- env:
8+
- CGO_ENABLED=0
9+
- GO111MODULE=on
10+
- GOPRIVATE=github.com/turbot
11+
goos:
12+
- linux
13+
- darwin
14+
15+
goarch:
16+
- amd64
17+
- arm64
18+
19+
id: "tailpipe"
20+
binary: "{{ .ProjectName }}.plugin"
21+
# flags:
22+
# - -tags=netgo
23+
24+
archives:
25+
- format: gz
26+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
27+
files:
28+
- none*
29+
checksum:
30+
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
31+
algorithm: sha256
32+
changelog:
33+
sort: asc
34+
filters:
35+
exclude:
36+
- "^docs:"
37+
- "^test:"

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## v0.1.0 [2025-01-30]
2+
3+
_What's new?_
4+
5+
- New tables added
6+
- [aws_cloudtrail_log](https://hub.tailpipe.io/plugins/turbot/aws/tables/aws_cloudtrail_log)
7+
- New sources added
8+
- [aws_s3_bucket](https://hub.tailpipe.io/plugins/turbot/aws/sources/aws_cloudtrail_log)

Makefile

+31-35
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
1-
# Paths
2-
PLUGIN_NAME=tailpipe-plugin-aws.so
3-
PLUGIN_DIR=~/.tailpipe/plugins
1+
TAILPIPE_INSTALL_DIR ?= ~/.tailpipe
2+
BUILD_TAGS = netgo
3+
install:
4+
go build -o $(TAILPIPE_INSTALL_DIR)/plugins/hub.tailpipe.io/plugins/turbot/aws@latest/tailpipe-plugin-aws.plugin -tags "${BUILD_TAGS}" *.go
45

5-
# Build flags
6-
PROD_FLAGS=-buildmode=plugin
7-
DEV_FLAGS=-buildmode=plugin -gcflags='all=-N -l'
8-
9-
# Build in development mode by default
10-
.PHONY: default
11-
default: dev-install
12-
13-
# Production build, optimized
14-
.PHONY: build
15-
build:
16-
go build $(PROD_FLAGS) -o $(PLUGIN_NAME) .
17-
18-
# Development build, removes optimizations to allow debugging
19-
.PHONY: dev
20-
dev:
21-
go build $(DEV_FLAGS) -o $(PLUGIN_NAME) .
22-
23-
# Install the development build
24-
.PHONY: dev-install
25-
dev-install: dev
26-
cp $(PLUGIN_NAME) $(PLUGIN_DIR)
27-
28-
# Run tests
29-
.PHONY: test
30-
test:
31-
go test ./... -v
32-
33-
# Clean up generated files
34-
.PHONY: clean
35-
clean:
36-
rm -f $(PLUGIN_NAME)
6+
## Paths
7+
#PLUGIN_NAME=tailpipe-plugin-aws.plugin
8+
#PLUGIN_DIR=~/.tailpipe/plugins/
9+
#
10+
## Build in development mode by default
11+
#.PHONY: default
12+
#default: install
13+
#
14+
## Production build, optimized
15+
#.PHONY: build
16+
#build:
17+
# go build -o $(PLUGIN_NAME) .
18+
#
19+
## Install the development build
20+
#.PHONY: install
21+
#install: build
22+
# mv $(PLUGIN_NAME) $(PLUGIN_DIR)
23+
#
24+
## Run tests
25+
#.PHONY: test
26+
#test:
27+
# go test ./... -v
28+
#
29+
## Clean up generated files
30+
#.PHONY: clean
31+
#clean:
32+
# rm -f $(PLUGIN_NAME)

0 commit comments

Comments
 (0)