Setup Guide
This guide walks you through setting up your AWS account and obtaining the credentials required to use the AWS Marketplace Entitlement Service connector.
Prerequisites
- An active AWS account registered as a seller in the AWS Marketplace Management Portal
- At least one published product in AWS Marketplace with an entitlement-based pricing model (SaaS Contract) and active customer subscriptions
Step 1: Create an IAM user
- Log in to the AWS Management Console.
- Navigate to IAM (Identity and Access Management).
- Select Users in the left sidebar, then select Create user.
- Enter a user name (for example,
ballerina-mpe-connector) and select Next. - Select Attach policies directly.
- Search for and attach the AWSMarketplaceGetEntitlements managed policy, or create a custom policy granting
aws-marketplace:GetEntitlements. - Select Next, review the settings, and select Create user.
For a screenshot-by-screenshot walkthrough of the IAM user creation and access key generation steps, see the AWS SQS setup guide. The console flow is identical, only the attached policy differs.
For production workloads, consider using an IAM role with temporary credentials via AWS STS instead of long-lived access keys.
Step 2: Generate access keys
- In the IAM console, select the user you created.
- Go to the Security credentials tab.
- Under Access keys, select Create access key.
- Select the Application running outside AWS use case and select Next.
- Optionally add a description tag, then select Create access key.
- Copy the Access key ID and Secret access key.
The secret access key is shown only once at creation time. Store it securely and do not commit it to source control. Use Ballerina's configurable feature and a Config.toml file to supply credentials at runtime.
Step 3: Identify your AWS region
Determine the AWS region where your Marketplace product is registered. Common region include:
aws:US_EAST_1(US East: N. Virginia)
AWS Marketplace Entitlement Service is available in most AWS regions.
Step 4: Obtain your product code
- Log in to the AWS Marketplace Management Portal.
- Navigate to Products and select your product.
- Locate the Product Code in the product details — this is the identifier you pass to the
getEntitlementsoperation.