API Gateway Stage

An API Gateway Stage in AWS represents a specific deployment of an API, serving as an environment (such as dev, test, or prod) where the API is accessible. It defines settings like logging, caching, throttling, and stage variables that control runtime behavior. Stages allow versioning and controlled rollout of API changes.

aws.apigateway_stage

Fields

TitleIDTypeData TypeDescription
_keycorestring
access_log_settingscorejsonSettings for logging access in this stage.
account_idcorestring
cache_cluster_enabledcoreboolSpecifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabled to true for a method.
cache_cluster_sizecorestringThe stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
cache_cluster_statuscorestringThe status of the cache cluster for the stage, if enabled.
canary_settingscorejsonSettings for the canary deployment in this stage.
client_certificate_idcorestringThe identifier of a client certificate for an API stage.
created_datecoretimestampThe timestamp when the stage was created.
deployment_idcorestringThe identifier of the Deployment that the stage points to.
descriptioncorestringThe stage's description.
documentation_versioncorestringThe version of the associated API documentation.
last_updated_datecoretimestampThe timestamp when the stage last updated.
method_settingscorestringA map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.
stage_arncorestring
stage_namecorestringThe name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
tagscorehstore
tracing_enabledcoreboolSpecifies whether active tracing with X-ray is enabled for the Stage.
variablescorehstoreA map that defines the stage variables for a Stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
web_acl_arncorestringThe ARN of the WebAcl associated with the Stage.