alibaba / alibaba/funcraft

fun deploy ros 部署报错

Open
#954 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
931
Forks
128
PR merge metrics
No merged PRs in 30d

Description

### 重现 yml:
```

ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
temporary-domain:
Type: 'Aliyun::Serverless::Service'
Properties:
Description: helloworld
temporary-domain:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs8
CodeUri: ./
MemorySize: 768
Events:
httpTriggerBindCustomDomain:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
temporary-domain1:
Type: 'Aliyun::Serverless::Service'
Properties:
Description: helloworld
temporary-domain1:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs8
CodeUri: ./
MemorySize: 768
Events:
httpTrigger:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods:
- GET
my_domain:
Type: Aliyun::Serverless::CustomDomain
Properties:
DomainName: Auto
Protocol: HTTP
RouteConfig:
Routes:
"/":
ServiceName: temporary-domain
FunctionName: temporary-domain
```
### 报错信息
fun pacakge + fun deploy ros 后报错如下:

![image](https://user-images.githubusercontent.com/48934955/85921453-0de32900-b8af-11ea-81bd-d7f5e3c0e0ca.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the reported `fun package + fun deploy ros` command with the reproduced YAML configuration and inspect the error shown in the linked screenshot. Compare the deployment behavior for the two services and the custom-domain route; the issue is resolved when this configuration deploys without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.