View a markdown version of this page

AWS Cloud Development Kit (AWS CDK) - AWS Migration Acceleration Program 2.0 Tagging Guide for AWS Transform

AWS Cloud Development Kit (AWS CDK)

The AWS Cloud Development Kit (AWS CDK) (AWS CDK) is an open-source software development framework to define your cloud application resources using familiar programming languages. A tag in AWS CDK is applied to a given construct that also applies to all of its taggable children. These tags are included in the AWS CloudFormation template synthesized from your application and are applied to the AWS resources it deploys. For more information about AWS CDK tagging, see Tagging in the AWS Cloud Development Kit (AWS CDK) v2 developer guide.

Replace migra-abcdefg123456 with the tag value needed for your migrated resource followed by your PRM ID in the following example:

import { Tags } from 'aws-cdk-lib'; Tags.of(myConstruct).add('aws-apn-id', 'migra-abcdefg123456');
Note

The Migration Acceleration Program requires that you tag resources with the aws-apn-id tag. 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 PRM ID, the tag value can be any of the following:

  • migPRM ID

  • sapPRM ID

  • oraclePRM ID

Note

Use lowercase letters for the mig, sap, and oracle prefixes. For more information about what tag values you should use, see Tagging key combinations. For more information about your PRM ID, see PRM ID length.