Giter Club home page Giter Club logo

fc-base's People

Contributors

anycodes avatar heimanba avatar squatstonight avatar wss-git avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gongjl88

fc-base's Issues

重复 import 同一个 trigger 会出错

当首次部署一个线上已经存在的 trigger 时,能够成功,若此时在另一个文件夹部署同样的 trigger,则会在 import trigger 时失败,报错如下所示:

$  s exec node-demo -- deploy --use-local
[2021-05-19T17:14:39.613] [INFO ] [S-CLI] - Start ...
[2021-05-19T17:14:40.798] [INFO ] [FC-DEPLOY] - using region: cn-shanghai
[2021-05-19T17:14:40.799] [INFO ] [FC-DEPLOY] - using access alias: default
[2021-05-19T17:14:40.800] [INFO ] [FC-DEPLOY] - using accountId: ***********3743
[2021-05-19T17:14:40.800] [INFO ] [FC-DEPLOY] - using accessKeyId: ***********LEkP
[2021-05-19T17:14:41.998] [INFO ] [FC-DEPLOY] - service: qianfeng-demo exists online
[2021-05-19T17:14:42.107] [INFO ] [FC-DEPLOY] - function: node-demo exists online
[2021-05-19T17:14:42.239] [INFO ] [FC-DEPLOY] - trigger: myTimer exists online
[2021-05-19T17:14:42.284] [INFO ] [FC-DEPLOY] - waiting for service qianfeng-demo to be deployed
[2021-05-19T17:14:42.285] [INFO ] [FC-DEPLOY] - waiting for function node-demo to be deployed
[2021-05-19T17:14:42.285] [INFO ] [FC-DEPLOY] - waiting for triggers myTimer to be deployed
[2021-05-19T17:14:46.819] [INFO ] [PULUMI-ALIBABA] - Initializing stack...
[2021-05-19T17:14:47.984] [INFO ] [PULUMI-ALIBABA] - Stack 1986114430573743_cn-shanghai_qianfeng-demo of project 1986114430573743_cn-shanghai_qianfeng-demo initialized.
✖ import alicloud:fc/trigger:Trigger: qianfeng-demo:node-demo:myTimer error
[2021-05-19T17:14:57.542] [ERROR] [S-CLI] - Project node-demo failed to execute:
  
  📝 Message:  code: 255
 stdout: Previewing import (1986114430573743_cn-shanghai_qianfeng-demo):

    pulumi:pulumi:Stack 1986114430573743_cn-shanghai_qianfeng-demo-1986114430573743_cn-shanghai_qianfeng-demo running 
    alicloud:fc:Service qianfeng-demo  
    alicloud:fc:Function node-demo  
    alicloud:fc:Trigger node-demo-myTimer  
    pulumi:pulumi:Stack 1986114430573743_cn-shanghai_qianfeng-demo-1986114430573743_cn-shanghai_qianfeng-demo  
 
Resources:
    4 unchanged

Importing (1986114430573743_cn-shanghai_qianfeng-demo):

    pulumi:pulumi:Stack 1986114430573743_cn-shanghai_qianfeng-demo-1986114430573743_cn-shanghai_qianfeng-demo running 
    alicloud:fc:Service qianfeng-demo  
    alicloud:fc:Function node-demo  
    alicloud:fc:Trigger node-demo-myTimer  
    pulumi:pulumi:Stack 1986114430573743_cn-shanghai_qianfeng-demo-1986114430573743_cn-shanghai_qianfeng-demo  
 
Resources:
    4 unchanged

Duration: 1s


 stderr: error: no name for resource urn:pulumi:1986114430573743_cn-shanghai_qianfeng-demo::1986114430573743_cn-shanghai_qianfeng-demo::alicloud:fc/service:Service::qianfeng-demo

 err?: 

  🧭 You can get help for this component by [s node-demo -h]
  😈 If you have questions, please tell us: https://github.com/Serverless-Devs/Serverless-Devs/issues

直接用 pulumi imoprt 重复导入同一个 trigger 也会报同样的错误

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.