AWS Marketplace (planned)
The AWS Marketplace listing for Amazon EKS is planned and not available yet, so Spanway cannot be bought or installed from AWS Marketplace today. Until the listing ships, deploy the componentised Helm chart on EKS with marketplace.provider left empty and a Spanway license in license.secretName, as on any other cluster, and get the license from sales@spanway.ai.
The listing lets a team buy Spanway through their AWS bill instead of signing a separate contract with us. Everything the listing needs is ready in the product: the chart's marketplace mode, the entitlement checks for every pricing model, the hourly usage meter and the IAM policies. This page describes how an install from the listing will behave once it is live. Nothing on this page replaces a Spanway license today.
Everything in the picture runs in your own AWS account. The pods pull the compiled images and the Helm chart from the listing's registry, store keys, spend logs and the audit trail in your PostgreSQL database, and call your model providers with your own provider keys. The only calls to AWS Marketplace are the entitlement check when a pod starts and, on a usage listing, one usage record per pod per hour. Spanway receives no prompts, answers, logs or telemetry.
A real-world scenario
A platform team runs its applications on EKS and has committed AWS spend to use up. They want to buy Spanway Enterprise through the planned AWS Marketplace listing so the cost lands on the same AWS bill. The listing is not live yet, so they install the componentised chart with a license from sales today. When the listing ships they change a few chart values and keep the same install, database and keys.
Steps
-
Get a license from sales@spanway.ai and store it as a Secret.
kubectl -n spanway create secret generic spanway-license --from-literal=license='<license key>' -
Install the componentised Helm chart with
marketplace.providerleft empty andlicense.secretName=spanway-license. -
Check the licensed features.
curl https://<host>/health/license -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -
In the Admin UI open the account menu at the bottom of the left sidebar and check that Tier reads Enterprise.
Expected result
has_license is true, license_type is enterprise and allowed_features lists what the license grants. Nothing on the install needs the planned marketplace listing.
Pricing
The listing will offer three ways to pay. The seller chooses which ones the listing carries, and the buyer sees the prices on the listing page before subscribing.
| Pricing | What the buyer pays for | How the gateway checks it | Value |
|---|---|---|---|
| Contract, the recommended model | A monthly or yearly subscription. The enterprise dimension turns on every Spanway Enterprise feature and is priced like the Cloud Enterprise plan, 999 USD a month. Larger agreements are sold as private offers. | AWS License Manager checkout of the subscription's entitlements. | marketplace.aws.pricing=contract |
| Usage | Successful model, MCP and agent requests, counted in units of 1,000. Failed requests are free. | A real MeterUsage record of zero units when a pod starts, then one usage record per pod per hour, each of which also checks the subscription. | marketplace.aws.pricing=usage |
| Hourly | Each running gateway, backend or workflow worker pod, per hour. | RegisterUsage when a pod starts. AWS then meters the running pods itself. | marketplace.aws.pricing=hourly |
Model usage is not part of any of these prices. A marketplace install calls your model providers with your own provider keys, so your providers bill you for it directly and Spanway adds no markup. The 15 percent usage price, set by general_settings.cloud.usage_price_per_usd, applies only to Spanway Cloud, where usage runs on Spanway's provider accounts.
Usage metering switch
marketplace.aws.metering.enabled decides whether the gateway sends usage records to AWS Marketplace.
What it does: when it is on, each gateway and backend pod counts the successful requests it serves, the same model, MCP and agent requests the billing metrics count, and once an hour sends AWS one record with the number of whole thousands, zero included. A part of a thousand waits for the next hour.
How it helps you: a team that uses the gateway lightly pays for what it serves instead of a fixed subscription, and the charge shows up on the AWS bill next to the EKS cluster that served it.
When it is on: AWS bills the subscribing account for every 1,000 successful requests. If a record cannot be sent, for example because AWS is throttling, the pod keeps the count and sends it with a later record, and a pod sends at most one record in each clock hour. Each hourly record is also a subscription check: when AWS refuses it because the account is no longer subscribed, every licensed feature turns off within the hour, and it comes back once AWS accepts a record again.
When it is off: the gateway never sends usage to AWS. A listing priced by usage then refuses to turn on the licensed features, so nobody gets them without paying.
Default: off. It stays off until the listing is live, so no install sends usage to AWS by accident.
Cost and side effects: requests a pod has counted but not yet sent when it stops, at most one hour of them plus a part of a thousand, are not billed. Counting only ever drifts in the buyer's favour. The chart needs gateway.numWorkers set to 1 with it, because AWS takes one record per pod per hour and several worker processes in one pod would each send their own.
Who should change it: only the person who installs from a usage listing, and only together with marketplace.aws.pricing=usage. The chart refuses the switch with any other pricing, and refuses usage pricing without the switch.
How the entitlement will be checked
An hourly listing calls RegisterUsage once when each pod starts. A successful call grants every Spanway licence feature.
A usage listing sends a real MeterUsage record of zero units when each pod starts. It bills nothing, and AWS answers it with CustomerNotEntitledException when the account has no valid subscription. When AWS accepts it, every Spanway licence feature turns on. The gateway does not use the DryRun flag for this, because AWS documents a dry run as a permission check only, which an account that never subscribed can pass. After that, every hourly usage record checks the subscription again. When AWS refuses one with CustomerNotEntitledException, UnauthorizedException or InvalidProductCodeException, the gateway turns the licensed features off at once and checks again the next hour, so a buyer who unsubscribes loses them within about an hour without a restart.
A contract listing reads the licence AWS Marketplace issued to your account through AWS License Manager and checks out the entitlements on it. Each entitlement named after a Spanway licence feature grants that feature, and an entitlement named enterprise grants every feature. Entitlements with other names are ignored. The licence end date shows as the expiration date on the licence page of the Admin UI.
The check fails closed. If the AWS call is refused, the License Manager checkout returns no Spanway entitlement, the network call fails or the settings are incomplete, every licensed feature stays off and the pod logs an error that names the AWS error code. The free features keep working. On an hourly or contract listing a successful check holds for the life of the process, while a usage listing checks again with every hourly record. A failed one is tried again the next time the gateway reloads its licence, and restarting the pod forces a fresh check. Because no listing exists yet, turning the mode on today always ends in this failed state.
The licence feature names are access_requests, admin_mcp, agent_governance, agent_server_tools, auto_router, billing, cloud, code_graph, compliance, compliance_evidence, custom_agents, custom_roles, environments, evals, guardrails, human_approval, ip_allowlist, key_controls, key_hygiene, organization_sso, passthrough_routes, scoped_integrations, spend_reports, workflow_definitions, workflow_history, workflow_retries, workflow_queue_workers, workflow_runner, workflow_subworkflows, workflow_templates, workflow_triggers and workload_identity.
The IAM role a marketplace install will need
Create an IAM role that trusts your cluster's OIDC provider for the gateway and backend ServiceAccounts, and attach the one policy that matches your pricing. Each policy allows only the calls that pricing makes.
| Pricing | Actions |
|---|---|
| Hourly | aws-marketplace:RegisterUsage |
| Usage | aws-marketplace:MeterUsage |
| Contract | license-manager:CheckoutLicense and license-manager:ListReceivedLicenses |
The policy for a usage listing looks like this.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SpanwayUsageMetering",
"Effect": "Allow",
"Action": ["aws-marketplace:MeterUsage"],
"Resource": "*"
}
]
}
The trust policy names both ServiceAccounts the chart creates, <release>-gateway and <release>-backend by default, in the namespace you install into. The workflow workers run as the gateway ServiceAccount.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "Federated": "arn:aws:iam::<account-id>:oidc-provider/<cluster-oidc-issuer>" },
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"<cluster-oidc-issuer>:aud": "sts.amazonaws.com",
"<cluster-oidc-issuer>:sub": [
"system:serviceaccount:<namespace>:<release>-gateway",
"system:serviceaccount:<namespace>:<release>-backend"
]
}
}
}
]
}
AWS Marketplace only accepts usage records signed with an IAM role for service accounts on EKS, so use IRSA rather than EKS Pod Identity or the node role.
How the install from the listing will look
Once the listing ships, its fulfillment page will show the chart location and the product code or product SKU for your subscription, which you pass with the role ARN. A contract listing looks like this.
helm install spanway oci://registry.spanway.ai/spanway/charts/spanway \
--namespace spanway --create-namespace \
--set masterKey.secretName=spanway-master-key-secret \
--set database.writer.host=<postgres-host> \
--set database.writer.dbname=spanway \
--set marketplace.provider=aws \
--set marketplace.aws.pricing=contract \
--set marketplace.aws.productSku=<product-sku> \
--set serviceAccounts.gateway.create=true \
--set serviceAccounts.backend.create=true \
--set-string 'marketplace.serviceAccountAnnotations.eks\.amazonaws\.com/role-arn=arn:aws:iam::<account>:role/<role>'
For an hourly listing set marketplace.aws.pricing=hourly and marketplace.aws.productCode=<product-code> in place of the SKU. For a usage listing set marketplace.aws.pricing=usage, marketplace.aws.productCode=<product-code> and marketplace.aws.metering.enabled=true, and keep gateway.numWorkers=1. The chart refuses to render when the product code or SKU is missing, when license.secretName is also set, when the metering switch and the pricing do not match, or when the role annotation is set without the chart creating both ServiceAccounts. The schema migration Job does not check the entitlement and never counts requests, so a short migration run is never metered.
Values
| Value | Default | What it does |
|---|---|---|
marketplace.provider | "" | Set to aws to turn on marketplace mode. Leave it empty until the listing ships. |
marketplace.aws.pricing | hourly | hourly calls RegisterUsage, contract checks out the License Manager entitlements and usage sends a zero unit MeterUsage record at startup and then hourly usage records, each of which checks the subscription. |
marketplace.aws.productCode | "" | The listing's product code. Required for hourly and usage. |
marketplace.aws.productSku | "" | The listing's product SKU. Required for contract. |
marketplace.aws.metering.enabled | false | Sends the hourly usage records of a usage listing, see Usage metering switch. Only allowed with usage pricing, and required by it. |
marketplace.serviceAccountAnnotations | {} | Added to the gateway and backend ServiceAccounts, for the eks.amazonaws.com/role-arn annotation. |
None of these values is a secret. The pods get AWS credentials from the IRSA web identity token, so leave AWS access keys out of the chart. The chart sets the matching environment variables on the gateway, backend and workflow worker pods: SPANWAY_MARKETPLACE_PROVIDER, SPANWAY_AWS_MARKETPLACE_PRICING, SPANWAY_AWS_MARKETPLACE_PRODUCT_CODE, SPANWAY_AWS_MARKETPLACE_PRODUCT_SKU and SPANWAY_AWS_MARKETPLACE_METERING.
Checking a marketplace install
The licence page of the Admin UI lists the granted features, and GET /health/license returns them as allowed_features. When the list is empty, look for the marketplace entitlement could not be verified line in the gateway logs.
On a usage listing, the gateway log shows one AWS Marketplace usage record sent line per pod per hour at INFO level, with 0 units in an hour that served fewer than 1,000 successful requests. The Prometheus metrics below show the same on your dashboards.
| Metric | Type | What it shows |
|---|---|---|
spanway_aws_marketplace_metering_records_total{outcome} | Counter | Usage records the process tried to send, with outcome sent or failed. A rising failed count means AWS refused the record or could not be reached. |
spanway_aws_marketplace_metered_units_total | Counter | Units of 1,000 successful requests AWS accepted. |
spanway_aws_marketplace_metering_pending_requests | Gauge | Successful requests counted but not yet reported. It falls back below 1,000 after each record sent. |
The Azure Marketplace and Google Cloud Marketplace listings come later, after the AWS one, and will follow the same entitlement mapping.
Errors
| What you see | What it means | Fix |
|---|---|---|
Every licensed feature is off with marketplace.provider=aws | There is no listing yet, so no entitlement can be verified. | Leave marketplace.provider empty and use a license Secret. |
AWS Marketplace refused the usage record ... licence features are turned off in the gateway log | On a usage listing, AWS refused an hourly record with CustomerNotEntitledException, UnauthorizedException or InvalidProductCodeException. | Renew the subscription or fix the product code or the role. The features return with the next accepted record. |
marketplace entitlement could not be verified in the gateway log | The same, or on a live listing the AWS call named in the line was refused. | Before the listing ships, the same. On a live listing, check the subscription and the IAM role. |
has_license is false | The license Secret is missing or named differently. | Check license.secretName and the Secret. |
marketplace.aws.pricing=usage needs marketplace.aws.metering.enabled=true ... when rendering the chart | A usage listing was configured with the metering switch off. | Turn the switch on, or pick contract or hourly pricing. |
marketplace.aws.metering.enabled needs marketplace.aws.pricing=usage ... when rendering the chart | The switch was turned on for a listing that is not billed per request. | Turn the switch off, or set usage pricing. |
marketplace.aws.pricing=usage needs gateway.numWorkers=1 ... when rendering the chart | Several gateway worker processes per pod would each send their own hourly record. | Set gateway.numWorkers=1 and scale with more replicas. |
Logs
| Level | Line | Meaning | Action |
|---|---|---|---|
| ERROR | Spanway licence features are off because the aws marketplace entitlement could not be verified. <reason> | marketplace.provider is set but no entitlement was found, which is always the case until the listing exists. On a usage listing, <reason> can also be A usage AWS Marketplace listing needs SPANWAY_AWS_MARKETPLACE_METERING=true. or MeterUsage check for product <code> failed with <error>. | Leave marketplace.provider empty and use a license Secret. On a live listing, fix what the reason names. |
| INFO | AWS Marketplace usage metering is on for product <code>: successful requests are reported once an hour as the requests dimension in units of 1000. | The pod will send hourly usage records. | None. |
| INFO | AWS Marketplace usage record sent for product <code>: <n> units of 1000 requests for the hour starting <time>. | AWS accepted this hour's record. | None. |
| WARNING | AWS Marketplace usage record for product <code> failed with <error>. <n> units of 1000 requests are kept and sent with a later record. | AWS refused the record or could not be reached. Nothing is lost while the pod keeps running. | When it repeats, check that the IAM role allows aws-marketplace:MeterUsage and the pod can reach the AWS Marketplace Metering endpoint. DuplicateRequestException means another process in the pod already sent this hour's record, so set gateway.numWorkers=1. |
| ERROR | AWS Marketplace refused the usage record for product <code> with <error>, so the Spanway licence features are turned off until AWS accepts the subscription again. | AWS says the account is no longer subscribed, the product code is wrong or the role may not meter. Every licensed feature is off from this moment. The free features keep working. | Check the buyer subscription, the product code and the IAM role. The features come back on their own once an hourly record is accepted. |
| WARNING | AWS Marketplace usage metering stopped with <n> successful requests not reported. They are not billed. | The pod stopped with requests it could not report yet. | None. This is the expected cost of a restart. |
Related
- Componentised Helm chart.
- Enterprise for license feature names.
- Spanway Cloud usage price.
- Azure Marketplace (planned).