-
Notifications
You must be signed in to change notification settings - Fork 6
Description
File: themes/default/content//registry/packages/newrelic/api-docs/notificationdestination
Add an empty resource to your terraform file:
terraformresource “newrelic_notification_destination” “foo” {
}
pulumi import newrelic:index/notificationDestination:NotificationDestination Run import command:
newrelic_notification_destination.foo <destination_id>
Copy
Copy
Run the following command after the import successfully done and copy the information to your resource:terraform state show newrelic_notification_destination.foo
Add ignore_changes attribute on all in your imported resource:
terraform
lifecycle {
ignore_changes = all
}Your imported destination should look like that:
terraform
resource “newrelic_notification_destination” “foo” {
lifecycle {
ignore_changes = all
}name = “*********”
type = “SLACK”
auth_token {
prefix = "Bearer"
}property {
key = "teamName"
label = "Team Name"
value = "******"
}}