When AWS Serverless Application Model (AWS SAM) processes your AWS SAM template file, it generates one or more AWS CloudFormation resources. The set of AWS CloudFormation resources that AWS SAM generates differs depending on the scenarios that you specify. A scenario is the combination of AWS SAM resources and properties specified in your template file. You can reference the generated AWS CloudFormation resources elsewhere within your template file, similar to how you reference resources that you declare explicitly in your template file. Show
For example, if you specify an This section lists the scenarios and the AWS CloudFormation resources that they generate, and shows how to reference the generated AWS CloudFormation resources in your AWS SAM template file. Referencing generated AWS CloudFormation resourcesYou have two options for referencing generated AWS CloudFormation resources within your AWS SAM template file, by Referencing generated AWS CloudFormation resources by LogicalIdThe AWS CloudFormation resources that AWS SAM generates each have a The Referencing generated AWS CloudFormation resources by referenceable propertyFor some generated resources, AWS SAM provides a referenceable property of the AWS SAM resource. You can use this property to reference a generated AWS CloudFormation resource and its properties within your AWS SAM template file. Not all generated AWS CloudFormation resources have referenceable properties. For those resources, you must use the Generated AWS CloudFormation resource scenariosThe following table summarizes the AWS SAM resources and properties that make up the scenarios that generate AWS CloudFormation resources. The topics in the Scenarios column provide details about the additional AWS CloudFormation resources that AWS SAM generates for that scenario. Topics
When you specify an
Referenceable property: N/A (To reference this AWS CloudFormation resource, you must use the AWS::SNS::TopicPolicy
Referenceable property: N/A (To reference this AWS CloudFormation resource, you must use the AWS::SQS::QueuePolicy Referenceable property: N/A (To reference this AWS CloudFormation resource, you must use the AWS::Lambda::Permission Referenceable property: N/A (To reference this AWS CloudFormation resource, you must use the What does the AWS serverless application model template specification provide to help deploy your serverless application on AWS?The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML.
Which resource does AWS serverless application model syntax expand and transform into?The AWS::Serverless transform, which is a macro hosted by CloudFormation, takes an entire template written in the AWS Serverless Application Model (AWS SAM) syntax and transforms and expands it into a compliant CloudFormation template.
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.
What are serverless applications in AWS?A serverless architecture is a way to build and run applications and services without having to manage infrastructure. Your application still runs on servers, but all the server management is done by AWS.
|