resource/aws_servicequotas_service_quota: Remove resource from Terraform state on NoSuchResourceException error #10735
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Note
Reference: https://aws.amazon.com/blogs/compute/preview-vcpu-based-instance-limits/
Release note for CHANGELOG:
Recently, AWS EC2 removed certain instance service quotas:
These may have been managed previously by Terraform configurations, however they now return the following error (as would any other quotas removed in the future):
Given this error, it is not possible to remove the problematic resource without manually calling
terraform state rm
. The correct behavior in this case is for the Terraform resource to remove itself from the state and propose recreation, which would allow operators to successfully remove the missing quotas from their configurations.This particular change cannot be directly acceptance tested since the availability of quotas is managed by AWS, not a managable resource.
Output from acceptance testing (requesting increase of VPC internet gateways and VPCs limits in a personal testing account):