Deploy Routing Control using Terraform
Update name from my-routing-control to my-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 with name parameter, however, that also fails in Terraform with a separate error (but the routing control is successfully updated in AWS!)
Error: updating Route53 Recovery Control Config Assertion Rule: describing Route53 Recovery Control Config Control Panel: ValidationException: Malformed control panel arn Arn(arn:aws:route53-recovery-control::XXX:controlpanel/XXX/safetyrule/XXX)
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
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