Use cloudformation output for react build


Since a couple of days I’m trying to figure out a way to get something done, that should be fairly simple.

I’m using serverless to create a cognito user pool and identity pool. Now I must use their ids to bootstrap a react application - before it is uploaded to s3.

Using the scriptable-plugin I can trigger npm run build before the upload, but I wasn’t able to find any way to get access to the cloudformation outputs. Did I miss something totally obvious or is this not possible? I think this should be a pretty common usecase.

Help would be very appreciated!