code: def get_user_data_configuration():
      
      from cloud_inquisitor import get_local_aws_session, app_config
  
      kms_region = app_config.kms_region
      session = get_local_aws_session()
  
      if session.get_credentials().method == 'iam-role':
          kms = session.client('kms', region_name=kms_region)
      else:
          sts = session.client('sts')
          audit_role = sts.assume_role(RoleArn=app_config.aws_api.instance_role_arn, RoleSessionName='cloud_inquisitor')
          kms = boto3.session.Session(
              audit_role['Credentials']['AccessKeyId'],
              audit_role['Credentials']['SecretAccessKey'],
              audit_role['Credentials']['SessionToken'],
          ).client('kms', region_name=kms_region)
  
      user_data_url = app_config.user_data_url
      res = requests.get(user_data_url)
  
      if res.status_code == 200:
          data = kms.decrypt(CiphertextBlob=b64decode(res.content))
          kms_config = json.loads(zlib.decompress(data['Plaintext']).decode('utf-8'))
  
          app_config.database_uri = kms_config['db_uri']
      else:
          raise RuntimeError('Failed loading user-data, cannot continue: {}: {}'.format(res.status_code, res.content))
docs: Retrieve and update the application configuration with information from the user-data
  
      Returns:
          `None`