From 4b85429fc5a74deb633079d6714553faa5c08464 Mon Sep 17 00:00:00 2001 From: "posthog[bot]" <206114724+posthog[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 17:15:57 +0000 Subject: [PATCH] feat(settings): show AWS region on project region card The project region card printed only "EU Cloud" or "US Cloud" and never the AWS region. Support cites this card as the written record of where a customer's data is hosted, so a pay-as-you-go customer had no way to see "eu-central-1" in the product. Add a Region to AWS-region map and append the AWS region to the card, so EU Cloud reads "EU Cloud (AWS eu-central-1)" and US Cloud reads "US Cloud (AWS us-east-1)". Generated-By: PostHog Desktop Task-Id: c750ec55-487f-44f5-8c2f-36a30183a0a2 --- frontend/src/lib/constants.tsx | 7 +++++++ frontend/src/scenes/settings/environment/TeamSettings.tsx | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx index a849336d494c..8e0a087ef4f1 100644 --- a/frontend/src/lib/constants.tsx +++ b/frontend/src/lib/constants.tsx @@ -626,6 +626,13 @@ export const CLOUD_HOSTNAMES = { [Region.DEV]: 'app.dev.posthog.dev', } +// AWS region each PostHog Cloud runs in. Customers need this in writing for data-processing reviews. +export const CLOUD_AWS_REGIONS: Record = { + [Region.US]: 'us-east-1', + [Region.EU]: 'eu-central-1', + [Region.DEV]: null, +} + export const SESSION_RECORDINGS_PLAYLIST_FREE_COUNT = 5 export const SESSION_RECORDINGS_TTL_WARNING_THRESHOLD_DAYS = 10 // days diff --git a/frontend/src/scenes/settings/environment/TeamSettings.tsx b/frontend/src/scenes/settings/environment/TeamSettings.tsx index ff99235107a2..67a45ec0fbfa 100644 --- a/frontend/src/scenes/settings/environment/TeamSettings.tsx +++ b/frontend/src/scenes/settings/environment/TeamSettings.tsx @@ -9,7 +9,7 @@ import { AuthorizedUrlListType } from 'lib/components/AuthorizedUrlList/authoriz import { CodeSnippet } from 'lib/components/CodeSnippet' import { JSSnippet } from 'lib/components/JSSnippet' import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea' -import { TeamMembershipLevel } from 'lib/constants' +import { CLOUD_AWS_REGIONS, TeamMembershipLevel } from 'lib/constants' import { LemonField } from 'lib/lemon-ui/LemonField' import { Link } from 'lib/lemon-ui/Link' import { userHasAccess } from 'lib/utils/accessControlUtils' @@ -81,6 +81,7 @@ export function TeamVariables(): JSX.Element { const { preflight } = useValues(preflightLogic) const region = preflight?.region + const awsRegion = region ? CLOUD_AWS_REGIONS[region] : null const RESET_CONFIRMATION = 'RESET' @@ -157,7 +158,7 @@ export function TeamVariables(): JSX.Element {
Region - {`${region} Cloud`} + {awsRegion ? `${region} Cloud (AWS ${awsRegion})` : `${region} Cloud`}

Where your PostHog data is hosted.