-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: aws_api_gateway_integration
adding connection_type
attribute causing change which conflicts with aws_api_gateway_deployment
#28997
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@jufemaiz Thanks for raising this issue and sorry that you hit the problem. % make testacc TESTARGS='-run=TestAccAPIGatewayDeployment_conflictingConnectionType' PKG=apigateway
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/apigateway/... -v -count 1 -parallel 3 -run=TestAccAPIGatewayDeployment_conflictingConnectionType -timeout 180m
=== RUN TestAccAPIGatewayDeployment_conflictingConnectionType
=== PAUSE TestAccAPIGatewayDeployment_conflictingConnectionType
=== CONT TestAccAPIGatewayDeployment_conflictingConnectionType
deployment_test.go:271: Step 1/1 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
+/- create replacement and then destroy
Terraform will perform the following actions:
# aws_api_gateway_deployment.test must be replaced
+/- resource "aws_api_gateway_deployment" "test" {
~ created_date = "2023-01-20T16:28:49Z" -> (known after apply)
~ execution_arn = "arn:aws:execute-api:us-west-2:187416307283:omb77gq5w6/" -> (known after apply)
~ id = "cn78jr" -> (known after apply)
~ invoke_url = "https://omb77gq5w6.execute-api.us-west-2.amazonaws.com/" -> (known after apply)
~ triggers = { # forces replacement
~ "redeployment" = "8596956da9c859f00f1c36ded4503030bede9d5e" -> "d0ebf389b80c403aeca3b44ee94e6ac52bf1e21d"
}
# (2 unchanged attributes hidden)
}
# aws_api_gateway_integration.test will be updated in-place
~ resource "aws_api_gateway_integration" "test" {
+ connection_type = "INTERNET"
id = "agi-omb77gq5w6-qy43r9-GET"
# (9 unchanged attributes hidden)
}
Plan: 1 to add, 1 to change, 1 to destroy.
--- FAIL: TestAccAPIGatewayDeployment_conflictingConnectionType (36.42s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 41.512s
FAIL
make: *** [testacc] Error 1 We will get a fix in place for next week's Terraform AWS Provider release. Until then you can pin the provider version to 4.50.0. |
Thanks @ewbankkit! I was tearing my hair out for a while trying to track down the source of the issue! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.3.7
AWS Provider Version
4.51.0
Affected Resource(s)
aws_api_gateway_integration
aws_api_gateway_deployment
Using aws provider v4.51.0 and no changes of attributes to the resources, the plan indicated the following.
Expected Behavior
aws_api_gateway_deployment
can be managed.Actual Behavior
Yields:
This then had a downstream impact on
aws_api_gateway_deployment
resources that had a redeployment condition.This is then fine when pinning the aws provider to v4.50.0.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Unsure of the exact nature that causes the state, but it is one where there is a change to the deployment and a change to the integration.#16682
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: