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

API gateway not being created #204

Open
nitro78 opened this issue Jul 31, 2023 · 2 comments
Open

API gateway not being created #204

nitro78 opened this issue Jul 31, 2023 · 2 comments

Comments

@nitro78
Copy link

nitro78 commented Jul 31, 2023

I've read that an API gateway should be automatically created on deploy, but that isn't happening.
Am I missing something?

service: invoices-api
frameworkVersion: '3'

provider:
name: aws
runtime: nodejs14.x
stage: test
region: eu-west-1

custom:
apiGatewayServiceProxies:
eventbridge:
path: /invoice
method: post
source: 'hardcoded_source'
detailType: 'hardcoded_detailType'
eventBusName: { Ref: 'YourBusName' }

resources:
Resources:
YourBus:
Type: AWS::Events::EventBus
Properties:
Name: Default

plugins:

  • serverless-apigateway-service-proxy
@nitro78
Copy link
Author

nitro78 commented Jul 31, 2023

Not sure what happened, spent a long time around this until I found out that the api gateway should actually be created automatically.
The solution was to recreate the app from scratch, after that the deploy started displaying the end point...

@nitro78
Copy link
Author

nitro78 commented Jul 31, 2023

Closed

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