Use existing api key

Hi

I am trying to use an existing api key whenever I remove a deployment and push out a new one. But everytime I deploy it creates a new key. I have seen few people mention the same issue, but no clear solution and some seem hacky.

this is how my serverless.yml looks like

provider:
  name: aws
  runtime: python3.6
  stage: dev
  region: us-east-1
  apiKeys:
    - test-api-key-${self:provider.stage}
 usagePlan:
   quota: 
     limit: 5000
     period: MONTH
     offset: 2
   throttle:
     burstLimit: 200
     rateLimit: 100

I am happy to manually create an api key test-api-key-dev and `` test-api-key-prod` if needed as one time step and would like serverless to use those keys everytime I do a deploy.

Can someone guide me on how to achieve this ?

@mateen-hussain have you tried https://www.npmjs.com/package/serverless-add-api-key ?