code: def get_aws_regions(*, force=False):
      
      from cloud_inquisitor.config import dbconfig
      global __regions
  
      if force or not __regions:
          logger.debug('Loading list of AWS regions from static data')
          data = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json').json()
          rgx = re.compile(dbconfig.get('ignored_aws_regions_regexp', default='(^cn-|GLOBAL|-gov)'), re.I)
          __regions = sorted(list({x['region'] for x in data['prefixes'] if not rgx.search(x['region'])}))
  
      return __regions
docs: Load a list of AWS regions from the AWS static data.
  
      Args:
          force (`bool`): Force fetch list of regions even if we already have a cached version
  
      Returns:
          :obj:`list` of `str`