RequestParameters are not generated in Cloudformation

I’ve never tried to define the variables in the path and request properties at the same time (although I can see where you got the example from in the docs).

Try this definition:

handler: src/handlers/users.getById
name: SKUsersGetById
events:
  - http:
      path: users/{id}
      method: get
      cors: true

You’ll still see the id variable in the event.pathParameters object (i.e. event.pathParameters.id).