-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_api_gateway_deployment: Reverts validation errors #40067
Conversation
…n `aws_api_gateway_deployment` in favour of explicit `aws_api_gateway_stage`
…effect when `stage_name` isn't set
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=apigateway TESTS=TestAccAPIGatewayDeployment_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/apigateway/... -v -count 1 -parallel 20 -run='TestAccAPIGatewayDeployment_' -timeout 360m
2024/11/08 15:59:59 Initializing Terraform AWS Provider...
=== RUN TestAccAPIGatewayDeployment_basic
=== PAUSE TestAccAPIGatewayDeployment_basic
=== RUN TestAccAPIGatewayDeployment_disappears
=== PAUSE TestAccAPIGatewayDeployment_disappears
=== RUN TestAccAPIGatewayDeployment_Disappears_restAPI
=== PAUSE TestAccAPIGatewayDeployment_Disappears_restAPI
=== RUN TestAccAPIGatewayDeployment_triggers
=== PAUSE TestAccAPIGatewayDeployment_triggers
=== RUN TestAccAPIGatewayDeployment_description
=== PAUSE TestAccAPIGatewayDeployment_description
=== RUN TestAccAPIGatewayDeployment_stageDescription
=== PAUSE TestAccAPIGatewayDeployment_stageDescription
=== RUN TestAccAPIGatewayDeployment_stageName
=== PAUSE TestAccAPIGatewayDeployment_stageName
=== RUN TestAccAPIGatewayDeployment_StageName_emptyString
=== PAUSE TestAccAPIGatewayDeployment_StageName_emptyString
=== RUN TestAccAPIGatewayDeployment_variables
=== PAUSE TestAccAPIGatewayDeployment_variables
=== RUN TestAccAPIGatewayDeployment_conflictingConnectionType
=== PAUSE TestAccAPIGatewayDeployment_conflictingConnectionType
=== RUN TestAccAPIGatewayDeployment_deploymentCanarySettings
=== PAUSE TestAccAPIGatewayDeployment_deploymentCanarySettings
=== CONT TestAccAPIGatewayDeployment_basic
=== CONT TestAccAPIGatewayDeployment_stageName
=== CONT TestAccAPIGatewayDeployment_triggers
=== CONT TestAccAPIGatewayDeployment_Disappears_restAPI
=== CONT TestAccAPIGatewayDeployment_disappears
=== CONT TestAccAPIGatewayDeployment_stageDescription
=== CONT TestAccAPIGatewayDeployment_description
=== CONT TestAccAPIGatewayDeployment_conflictingConnectionType
=== CONT TestAccAPIGatewayDeployment_deploymentCanarySettings
=== CONT TestAccAPIGatewayDeployment_variables
=== CONT TestAccAPIGatewayDeployment_StageName_emptyString
--- PASS: TestAccAPIGatewayDeployment_variables (19.37s)
--- PASS: TestAccAPIGatewayDeployment_conflictingConnectionType (52.23s)
--- PASS: TestAccAPIGatewayDeployment_deploymentCanarySettings (84.93s)
--- PASS: TestAccAPIGatewayDeployment_stageName (89.21s)
--- PASS: TestAccAPIGatewayDeployment_basic (101.25s)
--- PASS: TestAccAPIGatewayDeployment_StageName_emptyString (121.78s)
--- PASS: TestAccAPIGatewayDeployment_triggers (285.24s)
--- PASS: TestAccAPIGatewayDeployment_Disappears_restAPI (317.64s)
--- PASS: TestAccAPIGatewayDeployment_stageDescription (369.29s)
--- PASS: TestAccAPIGatewayDeployment_description (405.94s)
--- PASS: TestAccAPIGatewayDeployment_disappears (675.58s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 679.509s
This functionality has been released in v5.75.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
The PR #39929 added the following validation to
canary_settings
andstage_description
, since the values are ignored whenstage_name
is not set:This caused some users to have errors with their existing configurations.
Remove the validation error and add run-time warnings.
Also deprecates
stage_name
,stage_description
, andcanary_settings
on theaws_api_gateway_deployment
resource if favour of an explicitaws_api_gateway_stage
.Relations
Closes #39957
Output from Acceptance Testing