aws_fsx_windows_file_system sends all self_managed_active_directory settings if any setting in that block has changed #19793
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/fsx
Issues and PRs that pertain to the fsx service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v0.13.5
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
When updating self_managed_active_directory.0.dns_ips (for example), only that field should be sent to AWS in the update request.
Actual Behavior
When updating self_managed_active_directory.0.dns_ips the provider also sent the username and password along with it even though the password had not changed in the code. As this is an imported filesystem the password in state is empty and this led to a validation error.
Steps to Reproduce
terraform apply
Alternatively if the filesystem is created in TF and a manual rotation of the password is performed, you can validate that the password gets reverted by TF.
Important Factoids
This appears to be a bug in
expandFsxSelfManagedActiveDirectoryConfigurationUpdate
which is copying the fields into the update struct without verifying that each individual field has actually changed:References
The text was updated successfully, but these errors were encountered: