Skip to content

Instantly share code, notes, and snippets.

View jakepage91's full-sized avatar

Jake Page jakepage91

View GitHub Profile
@jakepage91
jakepage91 / config.toml
Created July 12, 2023 13:09
Komiser + Grafana gist
[[aws]]
name="Production"
source="CREDENTIALS_FILE"
path="/usr/bin/credentials"
profile="default"
[[mongodbatlas]]
name="Staging"
organizationId="orgIdValue"
publicApiKey="publicApiKeyValue"
@jakepage91
jakepage91 / komiser-docker-run
Created January 13, 2023 12:33
Docker run command to launch Komiser docker container
docker run -v /local/path/to/config.toml:/etc/config/config.toml -v /local/path/to/credentials:/etc/config/credentials -d -p 3000:3000 --name komiser tailwarden/komiser:3.0.0 komiser start --config /etc/config/config.toml
@jakepage91
jakepage91 / config.toml
Created January 10, 2023 11:58
Example of a komiser config.toml file
[[aws]]
name="Admin-account"
source="CREDENTIALS_FILE"
path="./credentials.yaml"
profile="default"
[[aws]]
name="Sandbox-account"
source="ENVIRONMENT_VARIABLES"
@jakepage91
jakepage91 / tagged-aws-provider.tf
Last active October 18, 2022 14:05
Snipped of Terraform aws provider to add default and resource level tags
provider "aws" {
default_tags {
tags = {
Environment = "Sandbox"
Project = "DevOps"
}
}
}
@jakepage91
jakepage91 / aws_organization_tagging_policy.tf
Last active October 18, 2022 14:02
Example Terraform resource to define an AWS Organization tagging policy
resource "aws_organizations_policy" "OU-1-tagging-policy" {
name = "OU-1-tagging-policy"
content = <<CONTENT
{
"tags": {
"Environment": {
"tag_value": {
"@@assign": [
"Sandbox",