1

我一直在搜索我没有任何适合我的情况的资源。

我正在创建一个从 API Gateway 接收请求的函数。由于 API 网关会附带随机 ID,我希望在 SAM 模板上将此类 API 网关路由到我的域 example.com

以下是我的 .yml 模板,它确实创建了 lambda 函数和 API 网关(有效)

Resources:
  index:
    Type: 'AWS::Serverless::Function'
    Properties:
      Handler: index.handler
      Runtime: nodejs12.x
      CodeUri: . Events:
        CreateAPI:
          Type: Api
          Properties:
            Path: /render-s3
            Method: GET
4

0 回答 0