All apps/AWS SAM CLI

AWS SAM CLI

sam

AWS Serverless Application Model CLI.

Runs as sam|macOS, Linux, Windows|aws.amazon.com

Command form

ai-draft · 6 tasks · 28 fields

Initialize, build and deploy serverless apps. local, sync, logs, pipeline and publish are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui sam

sam init

Initialize an app
Initialize an appExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name
string
Runtime
string
Package type
2 choicesenum
Architecture
2 choicesenum
TasksEach one presets the form for one job
Create app
nameruntimepackage_typearchitecture
Non-interactive
nameruntimepackage_typeapp_templateno_interactive
ParametersOnly these flags are editable in the form
Project name
string
--name-n
Runtime
string
--runtime-r
Package type
enum
--package-type-pzipimage
Architecture
enum
--architecture-aarm64x86_64
Managed template
string
--app-template
Template location
string
--location-l
Output directory
path
--output-dir-o
Non-interactive
boolean
--no-interactive

sam build

Build Lambda functions
Build Lambda functionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Template file
file
TasksEach one presets the form for one job
Build
template
Build in container
templateuse_container
ParametersOnly these flags are editable in the form
Template file
path
--template-t
AWS profile
string
--profile
AWS region
string
--region
Debug logging
boolean
--debug
Build inside a container
boolean
--use-container-u
Parallel builds
boolean
--parallel-p
Cached builds
boolean
--cached-c
Build directory
path
--build-dir-b

sam deploy

Deploy an app
Deploy an appExample values, fixed in this page — nothing here reaches a terminal
Basic
Guided prompts
--guided
TasksEach one presets the form for one job
Guided deploy
guided
Deploy to stack
templatestack_names3_bucketresolve_s3
ParametersOnly these flags are editable in the form
Template file
path
--template-t
AWS profile
string
--profile
AWS region
string
--region
Debug logging
boolean
--debug
Guided prompts
boolean
--guided-g
Stack name
string
--stack-name
S3 bucket
string
--s3-bucket
S3 prefix
string
--s3-prefix
Auto-create managed S3 bucket
boolean
--resolve-s3
Parameter overrides (key=value)
string
--parameter-overrides
Config file
path
--config-file
Config environment
string
--config-env
SourcesEvery flag above is checked against these
src
completion

github.com

src
completion

github.com

src
completion

github.com

src
completion

github.com

Before it fills your prompt, Otty checks the installed sam against its version. A form that does not match your version is not offered.