template.yml 735B

123456789101112131415161718192021222324
  1. ROSTemplateFormatVersion: '2015-09-01'
  2. Transform: 'Aliyun::Serverless-2018-04-03'
  3. Resources:
  4. medical-plat:
  5. Type: 'Aliyun::Serverless::Service'
  6. Properties:
  7. InternetAccess: true
  8. Description: '医疗平台'
  9. medical-plat-fn:
  10. Type: 'Aliyun::Serverless::Function'
  11. Properties:
  12. Handler: com.yunzhi.demo.SpringApplication::main
  13. Runtime: custom
  14. CodeUri: 'oss://yz-serverless/medical-plat/medical-plat-0.0.3.zip'
  15. MemorySize: 1024
  16. Timeout: 30
  17. InitializationTimeout: 30
  18. CAPort: 8822
  19. Events:
  20. http-medical-plat:
  21. Type: HTTP
  22. Properties:
  23. AuthType: ANONYMOUS
  24. Methods: [ 'GET', 'POST', 'PUT', 'DELETE' ]