Hi, I am trying to use your plugin but I have encountered following error for the service called sample
with stage dev
:
service:
name: ${opt:name, 'sample'}
publish: false
plugins:
- serverless-appsync-plugin
- serverless-webpack
- serverless-resources-env
provider:
name: aws
runtime: nodejs8.10
region: eu-west-1
stage: ${opt:stage, 'dev'}
profile: ${opt:aws-profile, 'default-profile'}
functions:
someFunction:
handler: handler.someHandler
env-resources:
- CognitoUserPoolUserPool # defined below
resources:
CognitoUserPoolUserPool:
Type: AWS::Cognito::UserPool
Properties:
- someProperties
# ...
Do you know where the problem can be? When I remove your plugin from the configuration it works but also I need it so I have Cognito's UserPoolId within my Lambda function. Before trying your plugin I have tried reference it manually via CloudFormation output (https://serverless.com/framework/docs/providers/aws/guide/variables/#reference-cloudformation-outputs) which is probably what the plugin does in the background but with no luck - there was the same error.
Any idea? I am not sure how exactly the CloudFormation stack ID works related to the serverless stages.