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

Serverless framework deleting the already existing resource on sls deploy #6810

jayanthck opened this issue Oct 9, 2019 · 0 comments


Copy link

commented Oct 9, 2019

Bug Report

deploying the serverless template when a resource already exists, it is deleting the resource instead of updating it or not doing any changes


  1. What did you do?
    First I ran the sls deploy with out this property
    'test': hy1234
    and after this, I added the above property and ran sls deploy again

  2. What happened?
    ApiGatewayResourceTest is getting deleted

  3. What should've happened?
    Instead of deleting the resource ApiGatewayResourceTest, it should have updated it or left the resource unchanged

  4. What's the content of your serverless.yml file?
    attached the
    service: serverlessfunction
    name: aws
    region: 'eu-central-1'
    stage: stage
    runtime: nodejs10.x
    restApiId: '6k12345678'
    restApiRootResourceId: '6j12345678'
    'test': hy1234
    handler: handler.hello

    • http:
      path: 'test'
      method: post
      cors: true
  5. What's the output you get when you use the SLS_DEBUG=* environment variable (e.g. SLS_DEBUG=* serverless deploy)
    ApiGatewayResourceTest is getting deleted
    and there is new AGW deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.