Open dbnicholson opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
I encountered the same problem, but it started working when I included an additional parameter that wasn't initially necessary.
TF version : 014.12 Provider version : 5.31.0
resource "aws_ebs_volume" "test" {
size = 20
type = "gp2"
availability_zone = "${var.az}"
final_snapshot = true
multi_attach_enabled = false # I added this
tags = {
Name = "Test",
Snapshot = "true"
}
}
@fdarif , additionally setting multi_attach_enabled = false
did not make any difference wrt. to the error:
Error: modifying EBS Volume (
vol-01234567890abcdef
): InvalidParameterValue: Invalid input: Must specify at least one of size, type, iops, throughput or multi-attach.
This is for version 5.33.0
of aws_ebs_volume
Terraform Core Version
0.12.31
AWS Provider Version
4.64.0
Affected Resource(s)
aws_ebs_volume
Expected Behavior
Adding only
final_snapshot
should not cause an error.Actual Behavior
Adding only
final_snapshot
causes aModifyVolume
request to be sent to AWS without any parameters to modify and AWS returns a 400 with<Message>Invalid input: Must specify at least one of size, type, iops, throughput or multi-attach.</Message>
.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Add
final_snapshot = true
to an existingaws_ebs_volume
and apply changes.Debug Output
Panic Output
No response
Important Factoids
I think something that may be relevant here is that the volume was created with a pre-v4 version of the AWS provider. So, there was no
final_snapshot
in the state until I tried to add this change.References
Seems very similar to #26280 where this a state only change that should be ignored for the purposes of actually sending the AWS API request.
Would you like to implement a fix?
None