Configuring Your AWS Marketplace Account
After you've created your AWS Marketplace API Listing, you'll need to create some constructs in your AWS account that lets API Management interact with your listing. Delegating AWS Marketplace Listing management capabilities can be achieved by:
-
Creating a purpose-built, least-privilege-oriented IAM Role and associated IAM Policy.
-
Enabling a trust relationship (between API Management and the generated IAM role) that permits issuance of temporary credentials to the Entitlement Synchronization Service for the purpose of enforcing subscriber entitlements.
You can quickly and easily build this required infrastructure by leveraging API Management's pre-fabricated CloudFormation templates. To establish the trust relationship with API Management via Cloud formation, follow the steps below.
The following input is needed for this process:
| Key | Quantity | Type | Purpose | Example |
|---|---|---|---|---|
| IAM Role Name () | 1 | AWS ARN | Allows the customer to define the policy that establishes trust between Customer and . | arn:aws:iam::12345678:role/qa-mash-aws-entitlements |
Procedure
-
Download the API Management following AWS CloudFormation templates:
- Trust template (use this template once per AWS account that is to be connected to API Management)
- ProductCode template: (use this template for every AWS Marketplace Product Listing that is to be connected to API Management)
-
Follow the steps for creating a stack using the AWS CloudFormation Console; or, creating a stack using the AWS CLI.
-
Follow the steps for selecting a stack template using the AWS CloudFormation Console; or, retrieving a stack template using CLI. When you are done specifying your settings, click Next, and proceed with specifying the stack name and parameters.
-
Follow the steps for specifying the stack name and parameters. When you are satisfied with the parameter values, click Next to proceed with setting options for your stack.
-
Follow the steps for setting stack options. When you have entered all of your stack options, click Next Step to proceed with reviewing your stack.
-
Follow the steps for reviewing your stack.
noteOn the Review page, you must enable this check box: I acknowledge that AWS CloudFormation might create IAM resources with custom names. Otherwise, clicking Create will not work.

After you have reviewed the details of your stack and selected the acknowledgment checkbox, click Create to launch your stack.
What to do next
Outputs of this process, provided by you (the customer) to give to API Management, that will be used for configuring the API Marketplace page (Design > API Marketplace) in API Management Control Center:
| Key | Quantity | Type | Purpose | Example |
|---|---|---|---|---|
| IAM Role Name (Customer) | 1 | AWS ARN | Allows API Management to invoke the AssumeRole API | arn:aws:iam::12345678:role/aws-mp-mashery-iam-role |
| IAM Role Trust Relationship ExternalId | 1 | string | Allows API Management to invoke the AssumeRole API | masherytestexternalid |