Outputs not interpolated?


I’m a bit confused by Outputs in serverless.

Here’s what I’m trying to do:

I’ve defined a AWS::Cognito::UserPool resource in my serverless.yml file as such:
Type: “AWS::Cognito::UserPool”

I have then defined an outputs section in order to output the user pool id:
Value: !Ref UserPool

I’m planning to use this output in a subsequent step of my deployment sequence (creating an environment file in my angular app).

However when I try “sls output get --name userPoolId” or look at the serverless dashboard, I can see that the Ref function I’ve used is not interpolated, meaning the value for userPoolId is “{“Value”: {“Ref”:“UserPool”}}”.

Is this the expected behavior? I’ve looked at the different examples that use the Ref function in outputs but they don’t really mention whether the result is meant to be interpolated.

Here are the versions I’m using:
Framework Core: 2.13.0
Plugin: 4.1.2
SDK: 2.3.2
Components: 3.4.2

Also, if anyone knows how to purge the output variables (new outputs seem not to overwrite previous ones for the same output), besides plainly removing my stack, that would be a great help!

Thanks a lot!

Solved my problem calling
aws cloudformation describe-stack-resource --stack-name xxx --logical-resource-id UserPool
after retrieving sls output.