diff --git a/.changes/next-release/bugfix-region-endpoint-0496c4f3.json b/.changes/next-release/bugfix-region-endpoint-0496c4f3.json new file mode 100644 index 0000000000..14e33a8306 --- /dev/null +++ b/.changes/next-release/bugfix-region-endpoint-0496c4f3.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "region endpoint", + "description": "add endpoint suffix for a region" +} \ No newline at end of file diff --git a/lib/region_config.js b/lib/region_config.js index f2809c5216..04aa8de1b4 100644 --- a/lib/region_config.js +++ b/lib/region_config.js @@ -92,6 +92,7 @@ function getEndpointSuffix(region) { '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov', '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov', '^eu\\-isoe\\-west\\-1$': 'cloud.adc-e.uk', + '^us\\-isof\\-\\w+\\-\\d+$': 'csp.hci.ic.gov', }; var defaultSuffix = 'amazonaws.com'; var regexes = Object.keys(regionRegexes); diff --git a/test/region_config.spec.js b/test/region_config.spec.js index 4d7ddc0e42..5712c1b051 100644 --- a/test/region_config.spec.js +++ b/test/region_config.spec.js @@ -139,6 +139,10 @@ describe('region_config.js', function() { it('resolves the endpoint suffix for eu-isoe-west-1', function() { expect(getEndpointSuffix('eu-isoe-west-1')).to.equal('cloud.adc-e.uk'); }); + + it('resolves the endpoint suffix for us-isof-south-1', function() { + expect(getEndpointSuffix('us-isof-south-1')).to.equal('csp.hci.ic.gov'); + }); }); describe('region_config_data.json', function() {