How-to access PostHog Cloud infra

Last updated:

|Edit this page

We've all been there. Something was just merged and now there is a bug that you are having a real hard time pinning down. You hate to do it... but you need to get on a pod or instance to troubleshoot the issue further. SHAME

Shame bell

Prerequisite

Make sure you've followed this guide to get AWS access. !!! Please follow the whole document !!!

Connect to a Kubernetes pod

After you got access to the EKS cluster and our internal network:

  • kubectl -n posthog get pods (get names of pods, you'll want a "web" pod most likely)
  • kubectl -n posthog exec --stdin --tty <POD_NAME> -- /bin/bash (get a shell to the running container)
  • kubectl -n posthog exec <POD_NAME> env (run individual commands in a container)

Note: if you need a Django shell, just run the following after connecting:

Terminal
python manage.py shell_plus

Connect to an EC2 instance

Please follow this guide to connect via AWS Systems Manager Agent (SSM).

Questions?

Was this page useful?

Next article

ClickHouse Manual

Welcome to PostHog's ClickHouse manual. About this manual PostHog uses ClickHouse to power our data analytics tooling and we've learned a lot about it over the years. The goal of this manual is to share that knowledge externally and raise the average level of ClickHouse understanding for people starting work with ClickHouse. If you have extensive ClickHouse experience, and want to contribute thoughts or tips of your own, please do by opening an PR or issue on GitHub ! Consider this manual a…

Read next article