[Bug]: aws_route53recoverycontrolconfig_safety_rule Name update does not work without change in wait_period_ms #37763
Labels
bug
Addresses a defect in current functionality.
service/route53recoverycontrolconfig
Issues and PRs that pertain to the route53recoverycontrolconfig service.
Terraform Core Version
1.5.5
AWS Provider Version
5.51.1
Affected Resource(s)
aws_route53recoverycontrolconfig_safety_rule
Expected Behavior
Name
should be updated when only updating theName
property on an existing Route 53 Recovery Controller Safety RuleActual Behavior
Module fails with error
Error: updating Route53 Recovery Control Config Assertion Rule: InvalidParameter: 1 validation error(s) found. missing required field, UpdateSafetyRuleInput.AssertionRuleUpdate.WaitPeriodMs.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Deploy Routing Control using Terraform
Update
name
frommy-routing-control
tomy-routing-control2
.Do not update any other parameters in the resource.
Run Terraform Apply
Debug Output
No response
Panic Output
No response
Important Factoids
Can work around by modifying
wait_period_ms
parameter as part of the Update withname
parameter, however, that also fails in Terraform with a separate error (but the routing control is successfully updated in AWS!)References
Appears to be issue at https://github.com/hashicorp/terraform-provider-aws/blob/v5.51.1/internal/service/route53recoverycontrolconfig/safety_rule.go#L332
Per https://docs.aws.amazon.com/recovery-cluster/latest/api/safetyrule.html, WaitPeriodMs is always required on update.
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: