# ------------------------------------
#   官方手册: https://manual.serverless-devs.com/user-guide/aliyun/#fc3
#   常见小贴士: https://manual.serverless-devs.com/user-guide/tips/
#   有问题快来钉钉群问一下吧：33947367
# ------------------------------------
edition: 3.0.0
name: hello-world-app
access: "default"

vars:
  # 全局变量
  region: "cn-shenzhen"
  projectName: serverless-helper-testcase
resources:
  a1314:
    component: fc3
    props:
      region: ${vars.region}
      functionName: "${vars.projectName}-${this.name}"
      description: 'hello world by serverless devs'
      runtime: "python3.10"
      code: ./code
      handler: index.handler
      memorySize: 128
      timeout: 30
      environmentVariables:
        MY_VIRABLE: "${this.name}"
  a23sae213:
    component: fc3
    props:
      region: ${vars.region}
      functionName: "${vars.projectName}-${this.name}"
      description: 'hello world by serverless devs'
      runtime: "python3.10"
      code: ./code
      handler: index.handler
      memorySize: 128
      timeout: 30
      environmentVariables:
        MY_VIRABLE: "${this.name}"
  a12sae213:
    component: fc3
    props:
      region: ${vars.region}
      functionName: "${vars.projectName}-${this.name}"
      description: 'hello world by serverless devs'
      runtime: "python3.10"
      code: ./code
      handler: index.handler
      memorySize: 128
      timeout: 30
      environmentVariables:
        MY_VIRABLE: "${this.name}"
