The In the
following example, the template uses AWS SAM syntax to simplify the declaration of a Lambda function and its execution role. When creating a change set from the template, CloudFormation expands the AWS SAM syntax, as
defined by the transform. The processed template expands the
SyntaxThe value for the transform declaration must be a literal string. You can't use a parameter or function to specify a transform value. The following snippet is an example of a transform declaration: JSON
YAML
The In the following example, the template uses Amazon SAM syntax to simplify the declaration of a Lambda function and its execution role.
When creating a change set from the template, CloudFormation expands the Amazon SAM syntax, as defined by the transform. The processed template expands the
SyntaxThe value for the transform declaration must be a literal string. You can't use a parameter or function to specify a transform value. The following snippet is an example of a transform declaration: JSON
YAML
Which resource does AWS serverless application model AWS SAM syntax expand and transform into?Build serverless applications in simple and clean syntax
During deployment, SAM transforms and expands the SAM syntax into AWS CloudFormation syntax, enabling you to build serverless applications faster.
Which resources can be specified in the AWS serverless application model?Note that a serverless application is more than just a Lambda function—it can include additional resources such as APIs, databases, and event source mappings. You can use AWS SAM to define your serverless applications.
Which section of the AWS serverless application model template is required and identifies an AWS CloudFormation template file as an AWS SAM template file?Transform declaration.
The declaration Transform: AWS::Serverless-2016-10-31 is required for AWS SAM template files. This declaration identifies an AWS CloudFormation template file as an AWS SAM template file. For more information about transforms, see Transform in the AWS CloudFormation User Guide.
Which AWS service or resource is serverless?AWS Lambda is an event-driven, pay-as-you-go compute service that lets you run code without provisioning or managing servers.
|