Skip to content

Instantly share code, notes, and snippets.

View O1ahmad's full-sized avatar
🌎
Working from home

Ahmad O1ahmad

🌎
Working from home
View GitHub Profile
terraform {
required_version = ">= 0.12.0"
backend "s3" {
key = "terraform-autonet.tfstate"
encrypt = true
region = "us-west-2"
bucket = "o1labs-terraform-state"
acl = "bucket-owner-full-control"
}
}
@O1ahmad
O1ahmad / outputs.dat
Last active February 18, 2021 00:52
Mina example rendered alert configs
rendered_alerts_config =
# $: rule_filter - filter for subset of testnets to include in rule alert search space
# $: alerting_timeframe - range of time to inspect for alert rule violations
namespace: testnet-alerts
groups:
- name: Critical Alerts
rules:
- alert: BlockProductionStopped
expr: avg by (testnet) (increase(Coda_Transition_frontier_max_blocklength_observed {testnet=~"testworld|.+"} [1h])) < 1
terraform {
required_version = "~> 0.12.0"
backend "s3" {
key = "terraform-deepthi-example.tfstate"
encrypt = true
region = "us-west-2"
bucket = "o1labs-terraform-state"
acl = "bucket-owner-full-control"
}
}
This file has been truncated, but you can view the full file.
{"timestamp":"2021-01-29 17:16:40.281844Z","level":"Info","source":{"module":"Dune__exe__Coda","location":"File \"src/app/cli/src/coda.ml\", line 361, characters 4-15"},"message":"Coda daemon is booting up; built with commit $commit on branch $branch","metadata":{"branch":"HEAD","commit":"[DIRTY]d25be1547d4bede2918eae40a905d310a92dccf4","commit_date":"2021-01-28T11:20:14-08:00","marlin_commit":"[DIRTY][DIRTY]d25be1547d4bede2918eae40a905d310a92dccf4","pid":51}}
{"timestamp":"2021-01-29 17:16:40.283747Z","level":"Info","source":{"module":"Mina_lib__Conf_dir","location":"File \"src/lib/mina_lib/conf_dir.ml\", line 21, characters 10-21"},"message":"Created daemon lockfile $lockfile","metadata":{"lockfile":"/root/.coda-config/.mina-lock","pid":51}}
{"timestamp":"2021-01-29 17:16:40.284084Z","level":"Info","source":{"module":"Exit_handlers","location":"File \"src/lib/exit_handlers/exit_handlers.ml\", line 27, characters 2-13"},"message":"Registering async shutdown handler: $description","metadata":{"description":"R
terraform {
required_version = "~> 0.12.0"
backend "s3" {
key = "terraform-autonet.tfstate"
encrypt = true
region = "us-west-2"
bucket = "o1labs-terraform-state"
acl = "bucket-owner-full-control"
}
}
@O1ahmad
O1ahmad / plan
Created December 23, 2020 16:47
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.google_compute_zones.east1_available: Refreshing state...
google_container_cluster.coda_cluster_east: Refreshing state... [id=projects/o1labs-192920/locations/us-east1/clusters/coda-infra-east]
data.aws_secretsmanager_secret.pagerduty_testnet_primary_key: Refreshing state...
data.aws_secretsmanager_secret.prometheus_remote_write_config: Refreshing state...
data.aws_secretsmanager_secret_version.pagerduty_testnet_primary_key_id: Refreshing state...
data.aws_secretsmanager_secret_version.current_prometheus_remote_write_config: Refreshing state...
steps:
- command: "docker run --rm codaprotocol/coda-daemon:0.0.12-beta-new-genesis-01eca9b version"
label: ":docker: :rocket: launch Coda daemon"
agents:
size: "small"
- command: "docker run -it --rm -v /var/buildkite/shared:/shared ubuntu:18.04 bash -c 'echo $BUILDKITE_BRANCH > /shared/dind-file'; cat /var/buildkite/shared/dind-file | grep $BUILDKITE_BRANCH"
label: ":k8s: verify agent-dind pod shared volume via agent :docker: run"
key: "agent-docker-volume-share"
agents:
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
module.testnet_east.data.google_client_config.current: Refreshing state...
module.testnet_east.data.google_container_cluster.cluster: Refreshing state...
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
google_container_cluster.coda_cluster_east: Refreshing state... [id=projects/o1labs-192920/locations/us-east1/clusters/coda-infra-east]
google_container_cluster.buildkite_infra_central1: Refreshing state... [id=projects/o1labs-192920/locations/us-central1/clusters/buildkite-infra-central1]
google_container_cluster.buildkite_infra_east1: Refreshing state... [id=projects/o1labs-192920/locations/us-east1/clusters/buildkite-infra-east1]
google_container_cluster.buildkite_infra_east4: Refreshing state... [id=projects/o1labs-192920/locations/us-east4/clusters/buildkite-infra-east4]
data.google_client_config.current: Refreshing state...
data.aws_secretsmanager_secret.prometheus_remote_write_config: Refreshing state...