Giter Site home page Giter Site logo

fc-deploy's Introduction

指令帮助

该指令有 sdk 模式和 pulumi 模式,通过下述指令来进行切换,默认是 sdk 模式:

s cli fc-default set deploy-type pulumi
s cli fc-default set deploy-type sdk

部署时可通过 --use-local 来默认使用线下配置进行部署,此时不会出现交互式选择。

# 部署资源
$ s deploy -y --use-local

# 删除资源
$ s remove service
$ s remove function
$ s remove trigger [-n name]

fc-deploy's People

Contributors

anycodes avatar heimanba avatar linux-china avatar rsonghuster avatar squatstonight avatar wss-git avatar xsahxl avatar ztl8702 avatar

Stargazers

 avatar

Watchers

 avatar

fc-deploy's Issues

auto 配置的本地存储问题

对于 service 配置中的 logConfig/nasConfig/vpcConfig,均可配置 auto 选项,组件会自动创建默认命名规则的资源。

创建完成后,本地会默认保存解析出来的资源名称,下一次部署会复用该名称。

但当创建过程失败时,本地也会保存相应资源名称,导致下一次部署时报资源不存在的错误。

因此得确保创建失败后,本地不会保存资源名称,或者在使用本地缓存的资源名称时,先确保远端资源存在即可。

多次部署函数报错

场景描述:

  1. 部署服务及函数, yaml 如下
edition: 1.0.0
name: functionApp

services:
  laravelExample:
    component: devsapp/fc-deploy
    props:
      region: cn-shenzhen
      service:
        name: serverless-devs
        description: Serverless Devs示例程序
        vpcConfig: auto
      function:
        name: test
        runtime: nodejs12
        hanlder: index.hanlder
        code: .
  1. 再次部署函数,新增配置 logConfig: auto,会失败
edition: 1.0.0
name: functionApp

services:
  laravelExample:
    component: devsapp/fc-deploy
    props:
      region: cn-shenzhen
      service:
        name: serverless-devs
        description: Serverless Devs示例程序
        vpcConfig: auto
        logConfig: auto
      function:
        name: test
        runtime: nodejs12
        hanlder: index.hanlder
        code: .
  1. 不修改配置,删除 .s 目录,再次部署,部署成功

建议 `certConfig` 支持远程地址

当前 certConfig 中的 certificateprivateKey 只支持 pem 内容和本地文件路径, 对于需要经常更新 HTTPS 证书的用户而言用起来不是很方便 (每次证书更新都需要手动将证书下载至本地再进行 s deploy domain).

建议这两个属性可以支持以下协议:

  • http://https:// , 用户可以基于 DNS 或 PrivateZone 的内网解析保护密钥.
  • oss:// 对象存储服务的文件地址, 用户可以基于对象存储服务的访问控制能力保护密钥.
  • cas:// 假设是 SSL 证书管理 (云盾 SSL 证书) 的地址, 用户可以基于 RAM 的访问控制能力保护密钥.

Ref:

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.