Redundant ec2:ModifyNetworkInterfaceAttribute call when updating aws_network_interface #11273
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Milestone
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
1st Apply
First, apply the following tf file.
2nd Apply
Then, add
tags
attribute toaws_network_interface.eni
and apply.Debug Output
A part of the debug output from 2nd apply (full log not provided for security purpose).
https://gist.github.com/nozaq/b872123c8ceb7961089a8fee0c30ff8a
Panic Output
Terraform doesn't produce a panic.
Expected Behavior
On 2nd apply, only ec2:CreateTags is called to update tags on
aws_network_interface.eni
.Actual Behavior
On 2nd apply, ec2:ModifyNetworkInterfaceAttribute is called with SourceDestCheck paramter before ec2:CreateTags.
ec2:ModifyNetworkInterfaceAttribute call is redundant since SourceDestCheck parameter doesn't change on this apply.
Steps to Reproduce
terraform apply
with the1st Apply
code above.terraform apply
with the2nd Apply
code above.Important Factoids
None
References
None
The text was updated successfully, but these errors were encountered: