jacob-meacham / serverless-plugin-bind-deployment-id

:link: Serverless plugin to bind the randomly generated deployment id to custom resources
MIT License
33 stars 7 forks source link

Issue with reference to deployment #37

Closed AbdullahAli closed 3 years ago

AbdullahAli commented 3 years ago

I hope you are well,

I am following the example in the plugin page as follows:

resources:
  Resources:
    __deployment__:
      Properties:
        Description: This is my deployment

    ApiGatewayStage:
      Type: AWS::ApiGatewayV2::Stage
      Properties:
        StageName: ${self:provider.stage}
        DeploymentId:
          Ref: __deployment__
        ApiId:
          Ref: ApiGatewayRestApi
        AutoDeploy: true

However, it keeps giving me an error as follows:

  An error occurred: ApiGatewayStage - Invalid API identifier specified xxxxxxxxxx:XXXXXXXX (Service: AmazonApiGatewayV2; Status Code: 404; Error Code: NotFoundException; Request ID: e7ff26bd-99a8-4b1c-a9a0-d494c796aaf2; Proxy: null).

I was wondering if you are able to help please?