7 lines
257 B
JavaScript
7 lines
257 B
JavaScript
|
import { isFipsRegion } from "./isFipsRegion";
|
||
|
export const getRealRegion = (region) => isFipsRegion(region)
|
||
|
? ["fips-aws-global", "aws-fips"].includes(region)
|
||
|
? "us-east-1"
|
||
|
: region.replace(/fips-(dkr-|prod-)?|-fips/, "")
|
||
|
: region;
|