Testing in a sandbox for the AWS Partner Central Selling API
How to use the sandbox
-
Create an IAM role:
Create an IAM role in the AWS account linked with your AWS Partner Central account.
-
Assign Policy:
Assign the following policy to the IAM role. For more information, see Adding and removing IAM identity permissions.
-
Use IAM role credentials:
Use the credentials (secret key and access key) of this IAM role in your solution to perform the API actions.
Testing AWS actions
During the testing phase, it is often necessary to simulate AWS actions. This simulation enables partners to thoroughly test the complete end-to-end flow of their integration with AWS services.
Simulating the creation of an AWS originated opportunity
To simulate the creation of an AWS originated opportunity, in the payload of the
CreateOpportunity action, include "Catalog": "Sandbox" and
"Origin": "AWS Referral".
For example:
{ "Catalog": "Sandbox", "Origin": "AWS Referral", "OpportunityIdentifier": "O123456", "Title": "Test Opportunity", ... }
Simulating updates to a partner-originated opportunity
To simulate updates or other actions on a partner-originated opportunity, use the
UpdateOpportunity action with "Catalog": "Sandbox" and
Lifecycle.ReviewStatus: “Approved” or “Action Required” in the
payload.
If you are taking the payload from the GetOpportunity action to do the update, ensure that you change the ID to Identifier, and remove the following fields:
-
CreatedDate -
OpportunityTeam -
RelatedEntityIdentifiers
For example:
{ "Catalog": "Sandbox", "Identifier": "O123456", "Title": "Updated Test Opportunity", "Lifecycle": { "ReviewStatus": "Approved" } ... }
Testing events in the sandbox environment
Partners can consume opportunity events from the sandbox environment to help test the
event-based implementations. Set up EventBridge in the same AWS account with rules to listen for
sandbox events by specifying catalog: sandbox in the event details. For more information, see Selling API Events.
Example event rule:
{ "source": ["aws.partnercentral-selling"], "detail": { "catalog": ["Sandbox"] } }
Event rules that specify catalog as Sandbox will only match
events coming from the sandbox, generated by the actions you perform in the sandbox
environment.
Additional testing notes
-
Testing
AssociateOpportunityaction:-
Use the default solution
"S-1234567"for testing theAssociateOpportunityaction. -
For testing Marketplace offers, use a real offer ID from your account.
-
To move to production, change the
catalogvalue fromSandboxtoAWS.
Getting help
If you encounter challenges integrating your CRM with AWS, or if you need to test a specific scenario not covered here, please reach out to support by raising a case through the following steps:
-
Sign in to the AWS Partner Central
with your AWS Partner Network credentials. -
On the Support Center for Partner Central
, choose Open New Caseto log a new case. Complete the fields as follows:-
Type of support case:
AWS Partner Central. -
Question regarding:
Partner Central Tools or ACE leads and opportunities. -
Get specific: Select the most appropriate CRM Integration case type.
-
Subject: Include a brief description of the request.
-
Description: Provide a detailed description of issues, questions, errors, and troubleshooting steps.
-
Attachments: Include logs and screenshots, where applicable.
-