publish.yaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # 规范文档参考:
  2. # 中文:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/zh/0.0.2/serverless_package_model/package_model.md#应用模型规范
  3. # English: https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/en/0.0.2/serverless_package_model/package_model.md#Application-model-specification
  4. # --------------
  5. # Package 开发发布最佳实践:
  6. # - [社区讨论 #62](https://github.com/Serverless-Devs/Serverless-Devs/discussions/62);
  7. # - [社区讨论 #407](https://github.com/Serverless-Devs/Serverless-Devs/discussions/407);
  8. # - [社区讨论 #439](https://github.com/Serverless-Devs/Serverless-Devs/discussions/439);
  9. Type: Application
  10. Name: start-java11-mongodb-http
  11. Provider:
  12. - 阿里云
  13. Version: 0.0.1
  14. Description: 函数计算访问MongoDB
  15. HomePage: https://github.com/devsapp/start-java11-mongodb-http
  16. Tags: #标签详情
  17. - MongoDB
  18. - Java
  19. Category: Web框架
  20. Service: # 使用的服务
  21. 函数计算:
  22. Authorities:
  23. - AliyunFCFullAccess
  24. Parameters:
  25. type: object
  26. additionalProperties: false # 不允许增加其他属性
  27. required: # 必填项
  28. - region
  29. - serviceName
  30. - functionName
  31. - endpoint
  32. - tableName
  33. - instanceName
  34. properties:
  35. region:
  36. title: 地域
  37. type: string
  38. default: cn-hangzhou
  39. description: 创建应用所在的地区
  40. enum:
  41. - cn-beijing
  42. - cn-hangzhou
  43. - cn-shanghai
  44. - cn-qingdao
  45. - cn-zhangjiakou
  46. - cn-huhehaote
  47. - cn-shenzhen
  48. - cn-chengdu
  49. - cn-hongkong
  50. - ap-southeast-1
  51. - ap-southeast-2
  52. - ap-southeast-3
  53. - ap-southeast-5
  54. - ap-northeast-1
  55. - eu-central-1
  56. - eu-west-1
  57. - us-west-1
  58. - us-east-1
  59. - ap-south-1
  60. roleArn:
  61. title: 服务角色
  62. type: string
  63. default: ''
  64. description: 函数执行时所扮演的角色
  65. x-role:
  66. type: object
  67. name: mongodbbackuprole
  68. pattern: '^acs:ram::[0-9]*:role/.*$'
  69. service: fc
  70. description: 应用所属的函数计算服务配置的 role, 请提前创建好对应的 role, 授信函数计算服务, 并配置好 AliyunFCDefaultRolePolicy policy。
  71. authorities:
  72. - AliyunFCDefaultRolePolicy
  73. serviceName:
  74. title: 服务名
  75. type: string
  76. default: start-java11-mongodb-http
  77. description: 应用的服务名称
  78. functionName:
  79. title: 函数名
  80. type: string
  81. default: start-java11-mongodb-http
  82. description: 应用的函数名称
  83. MONGO_URL:
  84. title: MongoDB 数据库地址
  85. type: string
  86. description: 数据库所在地址(mongodb://xxxxxx)
  87. MONGO_DATABASE:
  88. title: 数据库名
  89. type: string
  90. description: 指定数据库名(users)