Comments (1)
Hello again,
I was able to fix it. I was defining an api gateway with resource 'StoreApiGateway'.
Resources:
StoreApiGateway:
Type: AWS::ApiGatewayV2::Api
Properties:
Name: '${self:service}-${sls:stage}'
ProtocolType: HTTP
CorsConfiguration:
It seems that the plugin is searching for one of this 3 values HttpApi
| ApiGatewayRestApi
| WebsocketsApi
in the cloudformation output. You can find more details here #222
// Cloud Formation Resource Ids
public static CFResourceIds = {
[Globals.apiTypes.http]: "HttpApi",
[Globals.apiTypes.rest]: "ApiGatewayRestApi",
[Globals.apiTypes.websocket]: "WebsocketsApi",
};
So i had to rename StoreApiGateway
→ HttpApi
, this means it will create a new api (with a new api id) when you deploy 💔
Resources:
HttpApi:
Type: AWS::ApiGatewayV2::Api
Properties:
Name: '${self:service}-${sls:stage}'
ProtocolType: HTTP
CorsConfiguration:
It will be nice to have an option to set a different name then HttpApi
.
Something like:
custom:
customDomain:
domainName: serverless.foo.com
stage: ci
...
customCFIdentifier: 'StoreApiGateway'
Thanks for this awesome plugin,
👍
from serverless-domain-manager.
Related Issues (20)
- Failed to find a stack (v7.0.4) HOT 6
- IPv6 Support | API Gateway HOT 1
- Error: V2 - Unable to update base path mapping for '...': Invalid stage identifier specified HOT 15
- Update aws-sdk deps
- Serverless Domain Manager: Plugin configuration is missing. HOT 2
- Failed to find a stack XXX HOT 8
- Section content for "Serverless Domain Manager" was already set HOT 1
- Incorrect hosted zone chosen when attempting to create a custom domain name
- Log is undefined when plugin is added programatically HOT 1
- Resolved credential object is not valid HOT 7
- Hosted Zone name matching broken in v7.3.1 HOT 2
- failed to find a stack error HOT 2
- Custom domain target is not the same as the endpoints url HOT 1
- Unable to update base path mapping HOT 8
- Unable to update base path mapping HOT 1
- proxy-agent-6.3.1.tgz: 1 vulnerabilities (highest severity is: 9.8) - autoclosed HOT 1
- Is there a way to retrieve the "Serverless Domain Manager" console outputs?
- Lambda URLs Custom Domain Names?
- Error: V1 - Unable to fetch information about domain HOT 2
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 serverless-domain-manager.