1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
【以下的回答经过翻译处理】 嗨,@learning
您可以按照下面的函数名称创建一个LogGroup。然后您可以自由设置日志保留时间。
资源:
TestFunc:
Type:AWS :: Serverless :: Function
Properties:
FunctionName:test-func
CodeUri:src / handlers / test_func
Handler:index.handler
Runtime:python3.6
AutoPublishAlias:live
Timeout:10
MemorySize:128
TestFuncLogGroup:
Type:AWS :: Logs :: LogGroup
Properties:
LogGroupName:!Sub /aws/lambda / $ {TestFunc}
RetentionInDays:14
関連するコンテンツ
- AWS公式更新しました 10ヶ月前
- AWS公式更新しました 3年前