Giter Site home page Giter Site logo

Comments (4)

mpadmaraj avatar mpadmaraj commented on June 12, 2024 1

It was my mistake in setting the URL. I'm closing the ticket.

from event-gateway-sdk.

ganeshvlrk avatar ganeshvlrk commented on June 12, 2024

@mpadmaraj Did you update the app related values in serverless.yml before redeploying? Can you please share the same

from event-gateway-sdk.

mpadmaraj avatar mpadmaraj commented on June 12, 2024
service: sls-mailer
app: sendmail
tenant: padmaraj

custom:
  eventgateway:
    url: ${env:EVENT_GATEWAY_APPLICATION}
    accessKey: ${env:EVENT_GATEWAY_ACCESS_KEY}
  eventTypes:
    http.request
    appment.sendMail
  bucket: serverless-email-attachment

plugins:
  - "@serverless/serverless-event-gateway-plugin"
  - serverless-plugin-browserifier
  - serverless-offline

package:
  individually: true

provider:
  name: aws
  runtime: nodejs8.10
  
  stage: dev
  region: ap-south-1
  environment:
     URL: ${self:custom.eventgateway.url}
  iamRoleStatements:
    - Effect: Allow
      Action:
        - s3:*
      Resource: "*"

functions:
  httpHandler:
    handler: functions/httpHandler.main
    environment: 
      S3_BUCKET_NAME: ${self:custom.bucket}
    package:
      include:
        - functions/parser.js
    events:
      - eventgateway:
          type: sync
          eventType: http.request
          path: /message
          method: POST
          cors:
            origins: 
              - "*"
            methods:
              - GET
              - POST
              - OPTIONS
            headers:
              - Content-Type
              - Authorization
              - Mail-Token
            allowCredentials: true
  sendMail:
    handler: functions/sendMail.main
    environment:
      senderEmail: ${env:MAIL_SMTP_FROM}
      receiverEmail: [email protected]
      host: ${env:MAIL_SMTP}
      user: ${env:MAIL_SMTP_USER}
      password: ${env:MAIL_SMTP_PASSWORD}
    events:
      - eventgateway:
          type: async
          eventType: appment.sendMail

I also did sls remove and sls deploy.
I could see that even after sls remove I have the .serverless folder and this has url in serverless-state.json pointing to old app. I thought that could be the issue and deleted that folder. But when it regenerated it has the same url.

from event-gateway-sdk.

mpadmaraj avatar mpadmaraj commented on June 12, 2024

Is there a way to remove all my applications and remove any configuration I have done on Serverless Gateway and start afresh? Could not see any command to clean up my applications on Serverless Dashboard

from event-gateway-sdk.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.