runtime or package type when using the `sam init` experience. Call `sam init --help` to learn more. Which template source would you like to use? 1 - AWS Quick Start Templates 2 - Custom Template Location Choice: 1 Choose an AWS Quick Start application template 1 - Hello World Example 2 - Data processing 3 - Hello World Example with Powertools for AWS Lambda 4 - Multi-step workflow 5 - Scheduled task 6 - Standalone function 7 - Serverless API 8 - Infrastructure event management 9 - Lambda Response Streaming 10 - GraphQLApi Hello World Example 11 - Full Stack 12 - Lambda EFS example 13 - Serverless Connector Hello World Example 14 - Multi-step workflow with Connectors 15 - DynamoDB Example 16 - Machine Learning Template: 1 プリセットのテンプレート or カスタムテンプレート プリセットなテンプレート の一覧
and package type? (python3.13 and zip) [y/N]: y Would you like to enable X-Ray tracing on the function(s) in your application? [y/N]: N Would you like to enable monitoring using CloudWatch Application Insights? For more info, please view https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-application-insights.html [y/N]: N Would you like to set Structured Logging in JSON format on your Lambda functions? [y/N]: y Structured Logging in JSON format might incur an additional cost. View https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html#monitoring-cloudwatchlogs-pricing for more details Project name [sam-app]: sam-python ----------------------- Generating application: ----------------------- Name: sam-python Runtime: python3.13 Architectures: x86_64 Dependency Manager: pip Application Template: hello-world Output Directory: . Configuration file: sam-python/samconfig.toml Next steps can be found in the README file at sam-python/README.md Commands you can use next ========================= [*] Create pipeline: cd sam-python && sam pipeline init --bootstrap [*] Validate SAM template: cd sam-python && sam validate [*] Test Function in the Cloud: cd sam-python && sam sync --stack-name {stack-name} --watch 構造化ログは便利 なのでONにする ことが多い 分散トレーシング。使わな いことが多い。 Application Insightsは、パ フォーマンスにシビアなラムダ 関数なら導入を検討してもいい かも
is a valid SAM Template # Build $ sam build --use-container # Deploy $ sam deploy --debug 開発環境の構成をDockerに閉じ込め、共通化できるのでおすすめ --debugを付与した方が、動きが理解しやすくトラブルシュートも容易 # ローカル環境でのDockerを使ったラムダ関数の実行 $ sam local invoke # イベントオブジェクトを使った動作確認 $ sam local invoke -e ./events/event.json