Skip to content

Commit

Permalink
feat: Add support for CloudWatch logs in AWS (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats authored May 26, 2022
1 parent 59bd87b commit 6d5d3b6
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cloudquery/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.3
version: 0.2.4

# -- This is the version number of the application being deployed.This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 5 additions & 1 deletion charts/cloudquery/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloudquery

![Version: 0.2.3](https://img.shields.io/badge/Version-0.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24](https://img.shields.io/badge/AppVersion-0.24-informational?style=flat-square)
![Version: 0.2.4](https://img.shields.io/badge/Version-0.2.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24](https://img.shields.io/badge/AppVersion-0.24-informational?style=flat-square)

The open-source cloud asset inventory powered by SQL.

Expand All @@ -24,6 +24,10 @@ Kubernetes: `^1.8.0-0`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| cloudwatch.cluster_name | string | `"cloudquery-complete-example"` | |
| cloudwatch.enabled | bool | `false` | |
| cloudwatch.region | string | `"us-east-1"` | |
| cloudwatch.role_arn | string | `"arn:aws:iam::xxxxxxx:role/cloudquery-complete-example-eksa-irsa-cloudwatch"` | |
| config | string | The chart will use a default CloudQuery aws config | CloudQuery config.hcl content |
| containerSecurityContext.enabled | bool | `true` | |
| containerSecurityContext.runAsUser | int | `1001` | |
Expand Down
9 changes: 9 additions & 0 deletions charts/cloudquery/templates/aws-cloudwatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if .Values.cloudwatch.enabled -}}
# create amazon-cloudwatch namespace
apiVersion: v1
kind: Namespace
metadata:
name: amazon-cloudwatch
labels:
name: amazon-cloudwatch
{{- end }}
16 changes: 16 additions & 0 deletions charts/cloudquery/templates/configmap-fluentbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.cloudwatch.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-cluster-info
namespace: amazon-cloudwatch
labels:
{{- include "cloudquery.labels" . | nindent 4 }}
data:
cluster.name: {{ .Values.cloudwatch.cluster_name }}
http.server: "Off"
http.port: ""
read.head: "Off"
read.tail: "On"
logs.region: {{ .Values.cloudwatch.region }}
{{- end }}
Loading

0 comments on commit 6d5d3b6

Please sign in to comment.