Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions frontend/src/lib/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, string | null> = {
[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

Expand Down
5 changes: 3 additions & 2 deletions frontend/src/scenes/settings/environment/TeamSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'

Expand Down Expand Up @@ -157,7 +158,7 @@ export function TeamVariables(): JSX.Element {
<div className="border rounded p-4 space-y-3 bg-bg-light flex-1 min-w-60">
<LemonLabel className="mb-0">Region</LemonLabel>
<CodeSnippet compact thing="project region">
{`${region} Cloud`}
{awsRegion ? `${region} Cloud (AWS ${awsRegion})` : `${region} Cloud`}
</CodeSnippet>
<p className="text-muted text-xs mb-0">Where your PostHog data is hosted.</p>
</div>
Expand Down
Loading