-
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_volume_attachment: Support update #2810
Conversation
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.
Thanks for the work here! 🚀
Just left a few nitpicks to address before merging.
@@ -205,6 +204,10 @@ func resourceAwsVolumeAttachmentRead(d *schema.ResourceData, meta interface{}) e | |||
return nil | |||
} | |||
|
|||
func resourceAwsVolumeAttachmentUpdate(d *schema.ResourceData, meta interface{}) error { | |||
return nil |
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.
Can you add a log statement explaining that we are actually doing nothing along with a comment for the reason behind?
func testAccVolumeAttachmentConfig_update(detach bool) string { | ||
return fmt.Sprintf(` | ||
resource "aws_instance" "web" { | ||
ami = "ami-21f78e11" |
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.
Can you fix the indentation here?
Config: testAccVolumeAttachmentConfig_update(false), | ||
Check: resource.ComposeTestCheckFunc( | ||
resource.TestCheckResourceAttr( | ||
"aws_volume_attachment.ebs_att", "force_detach", "false"), |
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.
Can you do the same for skip_destroy
?
@Ninir Ok👍 |
@Ninir It's ready to get review! |
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.
@atsushi-ishibashi LGTM, thanks for the PR.
Thanks @Ninir for the initial review.
All relevant acceptance tests are passing and last feedback was (AFAICT) implemented, so I'm going to merge this.
This has been released in terraform-provider-aws version 1.9.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes: #2520
Fixes: #1211
Implement
resourceAwsVolumeAttachmentUpdate
which does nothing and removed computed.