Page MenuHomePhabricator

Add AWS Region support to PhutilAWSFuture.
ClosedPublic

Authored by seporaitis on Feb 23 2014, 8:05 PM.
Tags
None
Referenced Files
F19935724: D8311.id19762.diff
Sun, Apr 12, 2:02 AM
F19720656: D8311.id19775.diff
Feb 12 2026, 10:14 PM
F19579532: D8311.id19762.diff
Feb 1 2026, 3:14 PM
F19563807: D8311.id.diff
Jan 31 2026, 4:25 PM
F19542992: D8311.id.diff
Jan 22 2026, 2:29 PM
F19540926: D8311.id19775.diff
Jan 22 2026, 1:02 AM
F19508372: D8311.id19762.diff
Jan 10 2026, 3:39 AM
F19021347: D8311.diff
Nov 23 2025, 7:21 PM

Details

Summary

Almost all AWS services endpoints follow this structure: SERVICE_NAME.REGION_ID.amazonaws.com. This revision adds support for setting a region in PhutilAWSFuture.

There are couple of exceptions to above rule - some services do not have region in their endpoint url (DevPay, Route 53, IAM, Import/Export, Security Token Service), some have a single endpoint in one region (OpsWorks, Support), some are funky (S3), but they all can be covered by overriding getHost() method.

Test Plan

No tests added. I acked through three repositories (libphutil, arcanist & phabricator) and couldn't find AWS used anywhere.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I think this is only used in some Drydock code that's sitting half-finished somewhere.