Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template format error: Unresolved resource dependencies [ApiGatewayDeployment1570755540682] in the Resources block of the template #176

Open
lkolchin opened this issue Oct 11, 2019 · 0 comments

Comments

@lkolchin
Copy link

Since the plugin create deployment in the separate cloudformation stack I get an error on the following code in the serverless.yaml

  Resources:
      MyServiceUsagePlan:
        Type: "AWS::ApiGateway::UsagePlan"
        DependsOn: ApiGatewayDeployment${sls:instanceId} # https://serverless.com/framework/docs/providers/aws/guide/variables/
        Properties:
          UsagePlanName: !Sub "${self:service}-${self:provider.stage}"
          ApiStages:
            - ApiId:
                Ref: ApiGatewayRestApi
              Stage: ${self:provider.stage}
          Quota:
            Limit: 500000
            Period: MONTH
          Throttle:
            BurstLimit: 200
            RateLimit: 100
      
      MyServiceUsagePlanKey:
        Type: "AWS::ApiGateway::UsagePlanKey"
        DependsOn: MyServiceUsagePlan
        Properties :
          KeyId: ${self:provider.KeyId}
          KeyType: API_KEY
          UsagePlanId:
            Ref: MyServiceUsagePlan

How can I use a custom ApiKey and Custom Usage Plan for APIGW and it's stages with this plugin then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant