You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3 types of pagerduty_user_notification_rule resources of different urgency configured in the code (the name, urgency, delay and the type are different among them):
resource"pagerduty_user_notification_rule""username_low_urgency_email" {
user_id=pagerduty_user.username.idstart_delay_in_minutes=1urgency="low"contact_method={
type ="email_contact_method"
id = pagerduty_user_contact_method.username_email.id
}
}
import {
to=pagerduty_user_notification_rule.username_low_urgency_emailid="PYZ7XYZ.PWMLIUR"
}
The error message should have read:
Error importing pagerduty_user_notification_rule. Expecting an ID formed as '<user_id>:<notification_rule_id>'
Note the colon instead of dot between user_id and notification_rule_id.
Actual Behavior
The error message misleadingly read:
Error importing pagerduty_user_notification_rule. Expecting an ID formed as '<user_id>.<notification_rule_id>'
Note the dot instead of dot between user_id and notification_rule_id.
Steps to Reproduce
Create a user, their contact methods and several user notification rules in PagerDuty UI.
Create a code with a pagerduty_user_notification_rule resource, and an import block to import the user_notification_rule resources, created previously in the UI.
terraform plan
Important Factoids
The import section of the pagerduty_user_notification_rule resource doc clearly states that the delimiter should be a colon.
The file and line of the code where the error should be corrected in can be found here
Also, an idea to consider - maybe it would be easier for users if all of the PagerDuty TF provider's resources will have the same delimiter in the import blocks across all of the resources? Currently, some of them expect a colon, some expect a dot as a delimiter.
The text was updated successfully, but these errors were encountered:
Terraform Version
terraform -v Terraform v1.9.5 on windows_amd64
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
3 types of pagerduty_user_notification_rule resources of different urgency configured in the code (the name, urgency, delay and the type are different among them):
Debug Output
The output of the terraform plan command
Expected Behavior
The error message should have read:
Error importing pagerduty_user_notification_rule. Expecting an ID formed as '<user_id>:<notification_rule_id>'
Note the colon instead of dot between user_id and notification_rule_id.
Actual Behavior
The error message misleadingly read:
Error importing pagerduty_user_notification_rule. Expecting an ID formed as '<user_id>.<notification_rule_id>'
Note the dot instead of dot between user_id and notification_rule_id.
Steps to Reproduce
pagerduty_user_notification_rule
resource, and an import block to import theuser_notification_rule
resources, created previously in the UI.terraform plan
Important Factoids
The import section of the
pagerduty_user_notification_rule
resource doc clearly states that the delimiter should be a colon.The file and line of the code where the error should be corrected in can be found here
Also, an idea to consider - maybe it would be easier for users if all of the PagerDuty TF provider's resources will have the same delimiter in the import blocks across all of the resources? Currently, some of them expect a colon, some expect a dot as a delimiter.
The text was updated successfully, but these errors were encountered: