Deployment Args
Manages an API Gateway REST Deployment. A deployment is a snapshot of the REST API configuration. The deployment can then be published to callable endpoints via the aws.apigateway.Stage
resource and optionally managed further with the aws.apigateway.BasePathMapping
resource, aws.apigateway.DomainName
resource, and aws_api_method_settings
resource. For more information, see the API Gateway Developer Guide. To properly capture all REST API configuration in a deployment, this resource must have dependencies on all prior resources that manage resources/paths, methods, integrations, etc.
For REST APIs that are configured via OpenAPI specification (
aws.apigateway.RestApi
resourcebody
argument), no special dependency setup is needed beyond referencing theid
attribute of that resource unless additional resources have further customized the REST API.When the REST API configuration involves other resources (
aws.apigateway.Integration
resource), the dependency setup can be done with implicit resource references in thetriggers
argument or explicit resource references using the resourcedependsOn
custom option. Thetriggers
argument should be preferred overdepends_on
, sincedepends_on
can only capture dependency ordering and will not cause the resource to recreate (redeploy the REST API) with upstream configuration changes. !>WARNING: It is recommended to use theaws.apigateway.Stage
resource instead of managing an API Gateway Stage via thestage_name
argument of this resource. When this resource is recreated (REST API redeployment) with thestage_name
configured, the stage is deleted and recreated. This will cause a temporary service interruption, increase provide plan differences, and can require a second apply to recreate any downstream stage configuration such as associatedaws_api_method_settings
resources.
Example Usage
Import
Using pulumi import
, import aws_api_gateway_deployment
using REST-API-ID/DEPLOYMENT-ID
. For example:
$ pulumi import aws:apigateway/deployment:Deployment example aabbccddee/1122334
The stage_name
, stage_description
, and variables
arguments cannot be imported. Use the aws_api_gateway_stage
resource to import and manage stages. The triggers
argument cannot be imported.
Constructors
Properties
Input configuration for the canary deployment when the deployment is a canary release deployment. See canary_settings below. Has no effect when
stage_name` is not set.
Description of the deployment
Description to set on the stage managed by the stage_name
argument. Has no effect when stage_name
is not set.