Resources:
BodyRequestValidator:
Type: “AWS::ApiGateway::RequestValidator”
Properties:
Name: body-request-validator
RestApiId:
Ref: ‘ApiGatewayRestApi’
ValidateRequestBody: true
ValidateRequestParameters: false
Outputs:
BodyRequestValidator:
Value:
Ref: body-request-validator
Export:
Name: ${self:custom.myAppName}-${self:custom.myStage}-bodyRequestValidator
Hi guys, i’m having an issue here where…without the output block the request validator is created fine, but with the ouputs its giving me the error:
Unresolved resource dependencies [body-request-validator] in the Outputs block of the template
According to documentation in Serverless Framework: Plugins
This is the correct way to create a reference for the validator?