template.yml 722B

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