Inside my serveless.yml I have defined resource:
resources: Resources: APIMocks: Type: AWS::S3::Bucket
And then I have a new handler which has to use this resource:
product: handler: handlers/products/index.handler description: product environment: BUCKET: Ref: APIMocks
I using node implementation and when I try to use
serveless offline with
process.env.BUCKET I'm getting object rather than a string.
When I user
process.env.BUCKET is a proper string value.