Comments (4)
It was my mistake in setting the URL. I'm closing the ticket.
from event-gateway-sdk.
@mpadmaraj Did you update the app related values in serverless.yml before redeploying? Can you please share the same
from event-gateway-sdk.
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.
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)
- Follow proper casing for API key config parameter HOT 5
- Python sdk support HOT 2
- Bug: Invoking functions seems to be broken. HOT 2
- Information on EG integrations is hard to find
- CloudEvent object HOT 7
- Getting "process is undefined" error when using unpack build HOT 1
- updateSubscription method is missing
- Cannot set CORS configuration. Error will also not parse.
- Emit method does not work with sync subscription HOT 4
- Add ability to specify path and/or additional headers for "emit" request. HOT 1
- Enable CORS HOT 13
- CORS is getting set for wrong path HOT 4
- Get / Show Specific Resource
- Golang SDK support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-gateway-sdk.