moto icon indicating copy to clipboard operation
moto copied to clipboard

Techdebt: Remove dependency on `get_available_regions`

Open bblommers opened this issue 2 years ago • 0 comments

Moto uses, for the vast majority of services, the botocore.get_available_regions-method to determine in what regions a particular service is available.

This method was always a bit flaky - it would take along time for new services to be available, and every now and then a new release would break the list for an existing service.

AWS' recommendation is to use the SSM parameter store instead, to determine per-region availability - see https://github.com/aws/aws-sdk/issues/206#issuecomment-1471354853

Moto should investigate whether we can also switch to using this method. The data is available in Moto, and it is updated regularly, so I assume it will be possible - just a potential performance issue to have to read the JSON file first thing.

bblommers avatar Mar 16 '23 12:03 bblommers