Skip to content

Commit

Permalink
update getEndpointSuffix for us-isof-south-1 (#4674)
Browse files Browse the repository at this point in the history
* update getEndpointSuffix for us-isof-south-1

* chore: add changelog
  • Loading branch information
siddsriv authored Aug 30, 2024
1 parent 203b2c6 commit e02cf7a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/bugfix-region-endpoint-0496c4f3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "region endpoint",
"description": "add endpoint suffix for a region"
}
1 change: 1 addition & 0 deletions lib/region_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions test/region_config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e02cf7a

Please sign in to comment.