AWS Serverless Application Model (SAM) - AWS Migration Acceleration Program 2.0 Tagging Guide

AWS Serverless Application Model (SAM)

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. You can define the application you want and model it using YAML by using a few lines per resource. During deployment, SAM transforms and expands the SAM syntax into AWS CloudFormationA syntax, enabling you to build serverless applications faster. For more information about SAM, see the Globals section of the AWS SAM template in the AWS Serverless Application Model developer guide.

Replace mig12345 with the tag value needed for your migrated resource followed by your MAP term agreement number in the following example to tag resources at the Global and Resource level:

Globals: Function: Tags: map-migrated: "mig12345" HttpApi: Tags: map-migrated: "mig12345"
Note

The Migration Acceleration Program requires that you tag resources with the map-migrated. This tag is automatically activated for you as a cost allocation tag. Tags that are automatically activated don't count towards your cost allocation tag quota. For more information, see Quotas and restrictions.

Depending on your migrated resource and MPE ID, the tag value can be any of the following:

  • mig5-digit MPE ID

  • sap5-digit MPE ID

  • oracle5-digit MPE ID

  • mig10 alphanumeric MPE ID characters

  • sap10 alphanumeric MPE ID characters

  • oracle10 alphanumeric MPE ID characters

Note

Use lowercase letters for the mig, sap, and oracle prefixes and uppercase letters for the alphanumeric MPE IDs (long MPE IDs). For more information about what tag values you should use, see Tagging key combinations. For more information about your MPE ID, see MPE ID length.