Skip to content

dennis-tra/thunderdome

 
 

Repository files navigation

Thunderdome

Setup

We use asdf to pin versions of the tools we are using.

We use direnv's dotenv module to configure the environment automatically when you enter the project folder . We set in .env AWS profile / region info so that tooling such as the AWS cli works. Copy .env.example to .env to enable it

Terraform

Formatting

We format with terraform fmt, in vscode you can do it automatically with:

  "[terraform]": {
    "editor.defaultFormatter": "hashicorp.terraform",
    "editor.formatOnSave": true,
    "editor.formatOnSaveMode": "file"
  },

Usage

terraform init
terraform plan
terraform apply

As usual

Grafana Agent Config

The Grafana agent sidecar is configured for targets and dealgood using separate config files held in an S3 bucket:

http://pl-thunderdome-public.s3.amazonaws.com/grafana-agent-config/

The config files can be found in ./tf/files/grafana-agent-config

Getting a console on a running container

ECS can inject an SSM agent into any running container so that you can effectively "SSH" into it.

  • Setup your credentials for an IAM user/role that has SSM permissions
  • Install AWS CLI
  • Install the Session Manager plugin for AWS CLI
  • Find the ECS task ID that you want to SSH into:
    • Log in to the AWS Console
    • Go to ECS
    • Select the eu-west-1 region
    • Select Clusters -> thunderdome
    • Select the Tasks tab
    • The Task ID is the UUID in the first column
  • export TASK_ID=<task_id> CONTAINER=gateway
  • aws ecs execute-command --task $TASK_ID --cluster thunderdome --container $CONTAINER --command '/bin/sh' --interactive

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 54.5%
  • HCL 38.6%
  • Shell 4.8%
  • Python 1.2%
  • Dockerfile 0.9%