resource/aws_api_gateway_deployment: Deprecate attributes that create stage #39957
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Description
The resource type
aws_api_gateway_deployment
has three attributes,stage_name
,stage_description
, andcanary_settings
, that "silently" create a new stage that is not managed by Terraform, except that deleting theaws_api_gateway_deployment
resource will also delete the stage. Ifstage_name
refers to an existing stage, the stage will be modified.We should prefer explicitly creating stages and assigning the deployment to the stage during creation or update. This will make it clear how the stage is managed. The ability to modify the stage using the deployment can also cause user confusion.
Deprecate attributes with a warning that they will be removed in a future version and recommend using a
aws_api_gateway_stage
resource.stage_name
stage_description
canary_settings
The attributes will be removed in #39958
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: