AWS Service Quotas ExecModule
Overview
AwsServiceQuotasModule brings account-level AWS quota evidence into ValkyrAI workflows. Discover services integrated with Service Quotas, list their applied quotas in a supported region, and inspect one known quota before a capacity review or deployment decision. Platform teams can attach the observed limit, unit, scope, and adjustability to a reviewed engineering task instead of copying an unexplained number from a console.
A quota value describes a limit. It does not describe current resource consumption or available headroom. This connector preserves the quota fields and optional CloudWatch metric references that AWS supplies, but does not query metric samples or calculate utilization. Compare a quota with independently authorized usage evidence for the same account, region, unit, and resource scope before deciding whether capacity is sufficient.
The release provides three read-only operations: list_services, list_service_quotas, and get_service_quota. It does not request increases, change quota templates, create support cases, discover AWS default quota values, or modify resources. The supported scope is account-level applied quotas; resource-specific contexts are outside this release.
Usage
- Create and verify an AWS
IntegrationAccountwith the minimum Service Quotas read permissions, leaving its statusREADY. - Add AWS Service Quotas in Workflow Studio and select the account through General > Connection. This built-in control owns the connection binding.
- Choose a supported region and run
list_servicesto discover service codes available through Service Quotas. - Use an observed
serviceCodewithlist_service_quotas. InspecthasMorebefore treating the result as a complete list. - Use an observed
quotaCodewithget_service_quotato attach a precise account-level quota to a capacity review. Keep its unit, region, and selected account with the evidence.
AWS evaluates the selected identity's IAM permissions. There is no account-ID override: the selected connection determines the account whose applied quotas are read. Each request goes to a fixed commercial AWS regional Service Quotas HTTPS destination; workflow input cannot choose an arbitrary host or endpoint.
Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
operation | string | Yes | — | list_services, list_service_quotas, or get_service_quota. |
region | string | No | us-east-1 | One of the supported commercial AWS regions listed below. |
serviceCode | string | Quota operations | — | Existing service code, such as ec2; 2–63 characters, beginning with a letter and containing only letters, digits, or hyphens. |
quotaCode | string | Get only | — | Existing quota code, such as L-1216C47A; 2–128 characters with the same character rules as serviceCode. |
pageSize | integer | List operations only | 100 | Maximum items requested per provider page, from 1 to 100. |
nextToken | string | List operations only | — | Opaque continuation for the same query and connection; at most 2,048 characters in the provider's base64-style format. |
returnAll | boolean | List operations only | false | Follow continuations within maxPages; a continuation may remain at the bound. |
maxPages | integer | List operations only | 1 | Maximum provider pages per execution, from 1 to 20. |
Supported regions are us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-west-3, eu-central-1, eu-north-1, ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, and sa-east-1.
Only documented fields are accepted. Inactive empty controls and neutral shared pagination defaults are tolerated; meaningful options for a different operation fail validation. list_services does not accept an active service or quota filter, and get_service_quota does not accept active pagination. Raw credentials, session tokens, role assumptions, custom destinations, resource context IDs, arbitrary request bodies, and other unsupported fields are rejected before provider access.
Outputs
Every operation returns a native map rather than an AWS SDK object.
| Output | Description |
|---|---|
status | success or error. |
operation | Selected operation. |
attempts | Provider attempts, including continued pages and retries. |
resultType | services, quotas, or quota. |
pagesData | Ordered complete normalized provider pages. |
pages | Number of provider pages consumed. |
hasMore | Whether a continuation remains after this execution. |
nextToken | Opaque continuation when more data is available. |
requestId | Safe AWS request identifier when available. |
error | Stable error code, redacted message, HTTP status, and retryability on failure. |
For list_services, each page contains a services array with available serviceCode and serviceName fields. For list_service_quotas, each page contains a quotas array. For get_service_quota, the page contains a single quota object.
Quota projections preserve available identifiers and names, quotaArn, finite numeric value between zero and 10,000,000,000, unit, adjustable, globalQuota, and account-level context. Optional period and usageMetric retain provider period details and metric references, including dimensions. A metric reference identifies a potential measurement source; it is not a retrieved measurement. An optional provider errorReason includes only a bounded errorCode; raw provider error messages are omitted. Missing optional fields remain absent rather than becoming fabricated zeroes or empty claims.
AWS omits quotas whose applied value is unavailable through these APIs. An empty list therefore does not prove that the service has no limits. A globalQuota flag describes the quota's scope; it does not make every returned quota regional or justify adding values across regions. Treat quota ARNs, context, dimensions, and account-related evidence as restricted data.
Pages remain separate. The module does not aggregate, deduplicate, rank, or calculate headroom. Pagination collects a sequence of reads rather than a transactional snapshot. Malformed or oversized responses fail safely instead of returning silently clipped results; a later-page failure does not produce a successful partial inventory. Each list page is bounded by the requested pageSize; metric dimensions are limited to ten entries and normalized text to 1,000,000 characters per page, with tighter field limits. Non-account quota levels or context scopes are rejected rather than returned as supported account-level evidence.
IntegrationAccount Requirements
Use a verified AWS IntegrationAccount in READY status through General > Connection. Its API-key field holds the access key ID and its protected password field holds the secret access key. The module consumes the platform-resolved account and does not accept secrets in workflow input.
Grant only the actions used by the workflow:
servicequotas:ListServices
servicequotas:ListServiceQuotas
servicequotas:GetServiceQuota
Use the AWS Service Quotas authorization reference to determine supported resource scopes and conditions. Discovery permissions can require broader resource scope than a named quota read; select least privilege according to the workflow's actual operations. No quota-increase, template-write, support-case, or resource-modification permission is needed.
Session tokens, automatic role assumption, system credential discovery, China/GovCloud partitions, and custom endpoints are unsupported. Manage access-key rotation, revocation, and connection verification through the normal integration controls. A verified connection does not establish that AWS has granted every requested action.
Configuration
The existing ExecModule retry policy controls provider attempts: three by default, configurable from one through five per request. This is module configuration rather than an input-map field. The SDK's internal retries are disabled so retry layers do not multiply attempts.
Safe reads use bounded exponential backoff beginning at 250 milliseconds for transport failures, throttling, and transient provider failures. Connection establishment is limited to ten seconds, socket reads and each call attempt to twenty seconds, and each SDK call to thirty seconds. Overall duration also depends on page and attempt budgets. The canonical server network guard must be available and permit the exact regional destination; a denied destination fails closed. AWS can report Service Quotas throttling as TooManyRequestsException with HTTP 400, so inspect the structured retryability flag rather than treating every 400 response as a permanent failure. Permission errors, invalid input, unavailable resources, and invalid continuations do not become successful results through retries. Each continued page and retry adds a provider request; choose a modest page budget and review cadence.
Operations
Discover integrated services
list_services returns service names and codes integrated with Service Quotas. Use it to discover the code for a later quota query. It is a Service Quotas service directory, not an inventory of deployed resources, enabled account services, or all AWS products.
List applied account-level quotas
list_service_quotas requests applied quotas for one service and explicitly selects the ACCOUNT level. Use the results to prepare a regional capacity checklist or find the exact quota code required by a review. A quota can be global despite being returned through a regional endpoint. AWS may not expose every applied value, so absence is not proof of unlimited capacity.
Inspect one applied quota
get_service_quota reads one known quota code for the selected account and region without a resource-specific context. A deployment preparation workflow can attach this result to an approval task, then compare it with compatible usage evidence from another source. This connector does not approve the deployment, assert available headroom, or request a larger limit.
Errors and Failure Modes
| Code | Meaning | Guidance |
|---|---|---|
VALIDATION_ERROR | Field, region, service code, quota code, bound, or operation-specific option is invalid. | Correct input before another provider request. |
UNSUPPORTED_OPERATION | Operation is outside the three-operation read contract. | Select a documented operation. |
INTEGRATION_ACCOUNT_ERROR | Connection is missing, unverified, not READY, incomplete, or supplied through forbidden raw fields. | Repair and verify the selected AWS connection. |
AWS_SERVICE_QUOTAS_HTTP_400 | AWS rejected permissions, a resource, input, or a token; throttling can also use this status. | Inspect retryability and the safe message. Preserve query parameters when continuing. |
AWS_SERVICE_QUOTAS_HTTP_429 / 500 / 502 / 503 / 504 | Rate limit or transient provider failure. | Use only the configured attempt budget and reduce request frequency. |
NETWORK_POLICY_ERROR | The server network guard is unavailable or denies the regional destination. | Review the server-owned outbound policy; workflow input cannot override it. |
NETWORK_ERROR | A transport failure or interruption prevented completion. | Check authorized outbound HTTPS and structured retryability. |
PAGINATION_ERROR | Continuation is unsafe or repeats. | Restart a bounded query; do not use rejected partial results as a complete inventory. |
RESPONSE_LIMIT_ERROR | Provider output is malformed, outside the supported scope, or exceeds normalization bounds. | Narrow page size and review the request scope before retrying. |
EXECUTION_ERROR | An unexpected execution failure was contained. | Review authorized diagnostics; public output omits raw exception details. |
An unavailable applied value, missing AWS permission, unsupported service in the chosen region, or expired continuation can fail even when local validation passed. Raw credentials and provider exception messages are not returned. Preserve the safe request ID when available for authorized AWS-side investigation.
Example
A platform team prepares a capacity review for on-demand EC2 instances in us-east-1. It first discovers visible EC2 quotas:
{
"operation": "list_service_quotas",
"region": "us-east-1",
"serviceCode": "ec2",
"pageSize": 25,
"returnAll": true,
"maxPages": 2
}
Inspect pagesData[*].quotas and hasMore. If a continuation remains, preserve the service, region, and connection when resuming. Then read the observed quota code:
{
"operation": "get_service_quota",
"region": "us-east-1",
"serviceCode": "ec2",
"quotaCode": "L-1216C47A"
}
Illustrative normalized success, showing selected provider fields:
{
"status": "success",
"operation": "get_service_quota",
"attempts": 1,
"resultType": "quota",
"pages": 1,
"hasMore": false,
"pagesData": [
{
"quota": {
"serviceCode": "ec2",
"quotaCode": "L-1216C47A",
"quotaName": "Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances",
"value": 32.0,
"unit": "None",
"adjustable": true,
"globalQuota": false
}
}
]
}
The example value is illustrative and does not establish any account's actual quota. The observed quota definition determines how to interpret its value; for this EC2 quota, consult AWS's vCPU counting rules. adjustable: true does not mean an increase was requested or approved. Route the real result and separately collected compatible usage evidence to the authorized owner before making a deployment decision.
Notes
- Pagination: The default execution reads one page.
returnAllfollows continuations only withinmaxPages. AWS can return fewer items thanpageSize, including an empty page, while still providing a continuation. CheckhasMore; never infer completion from item count alone. - Rate limits: Use bounded scheduled reads and account for page and retry requests. Service Quotas throttling can use HTTP 400. Consult AWS's current Service Quotas request limits for account and regional limits.
- API coverage: Only applied account-level quotas exposed by Service Quotas are supported. AWS-default discovery, resource-level contexts, increase requests/history, templates, tags, support cases, and automatic quota management are outside this release.
- Interpretation: A limit is not current usage, free capacity, or a reservation. Metric references are metadata. Global flags, units, periods, account identity, and region must remain attached to any downstream comparison.
- Idempotency and destructive behavior: Repeated reads do not modify AWS configuration, but returned values can change between calls. There is no write idempotency key and no destructive operation.
- Validation: Deterministic request, response, pagination, retry, credential, and registration tests establish local behavior. They do not prove a particular AWS identity's live quota access or the completeness of AWS's applied-value coverage. Verify the selected identity before relying on scheduled reviews.
See the AWS API references for ListServices, ListServiceQuotas, and GetServiceQuota.