sam init

From wikieduonline
Jump to navigation Jump to search

sam init command creates an application with sample code, unit tests, and the SAM template itself. It also allows you to initialize SAM applications using a custom structure so you can standardize them across teams and organizations.[1]

sam init

	SAM CLI now collects telemetry to better understand customer needs.

	You can OPT OUT and disable telemetry collection by setting the
	environment variable SAM_CLI_TELEMETRY=0 in your shell.
	Thanks for your help!

	Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html

Which template source would you like to use?
	1 - AWS Quick Start Templates
	2 - Custom Template Location
Choice: 2

Template location (git, mercurial, http(s), zip, path):

See also[edit]

  • https://www.amazonaws.cn/en/new/2018/aws-sam-cli-simplifies-building-serverless-apps/#:~:text=The%20new%20SAM%20init%20command%20creates%20an%20application,using%20the%20SAM%20init%20command%2C%20visit%20our%20documentation.
  • Advertising: