Failure updating AppSync Schema still updates the terraform state for it #20055
Labels
bug
Addresses a defect in current functionality.
service/appsync
Issues and PRs that pertain to the appsync service.
upstream
Addresses functionality related to the cloud provider.
Community Note
Terraform CLI and Terraform AWS Provider Version
(Terraform is not the latest one, but as I can understand the issue is most likely is in the provider, which is the latest one).
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/ddanila/7ea7f755cb57cf96abca28b1dcdd90ce
Expected Behavior
Schema is updated successfully. Terraform State is in sync with the remote state in AWS.
Actual Behavior
Schema failed to update successfully.
Terraform State contains the updated schema.
AWS still has the previous version of the schema.
Steps to Reproduce
Note: unfortunately, it's not that easy to reproduce the issue. For some unknown reason AWS returned failure on the schema update (was adding "
index: Int
" field).terraform plan -out=plan
terraform apply "plan"
Note that trying to apply the changes again lead to
No changes. Infrastructure is up-to-date.
message.Same for the refresh attempt for the obvious reason:
(this statement is not true, infra does not match the state, but this is expected due to #11460)
References
The text was updated successfully, but these errors were encountered: