Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs for event_orchestration resources import #529

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

mrwacky42
Copy link
Contributor

Fix the import examples for pagerduty_event_orchestration_* resources.

A failed import when I copy-pasta'd the exmaple

terraform import pagerduty_event_orchestration_unrouted 1b49abe7-26db-4439-a715-c6d883acfb3e
╷
│ Error: Invalid address
│
│   on <import-address> line 1:
│    1: pagerduty_event_orchestration_unrouted
│
│ Resource specification must include a resource type and name.

When what I really wanted is

terraform import pagerduty_event_orchestration_unrouted.unrouted 1b49abe7-26db-4439-a715-c6d883acfb3e
pagerduty_event_orchestration_unrouted.unrouted: Importing from ID "1b49abe7-26db-4439-a715-c6d883acfb3e"...
pagerduty_event_orchestration_unrouted.unrouted: Import prepared!
  Prepared pagerduty_event_orchestration_unrouted for import
pagerduty_event_orchestration_unrouted.unrouted: Refreshing state... [id=1b49abe7-26db-4439-a715-c6d883acfb3e]

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

Fix the import examples for `pagerduty_event_orchestration_*` resources.

A failed import when I copy-pasta'd the exmaple

```
terraform import pagerduty_event_orchestration_unrouted 1b49abe7-26db-4439-a715-c6d883acfb3e
╷
│ Error: Invalid address
│
│   on <import-address> line 1:
│    1: pagerduty_event_orchestration_unrouted
│
│ Resource specification must include a resource type and name.
```

When what I really wanted is
```
terraform import pagerduty_event_orchestration_unrouted.unrouted 1b49abe7-26db-4439-a715-c6d883acfb3e
pagerduty_event_orchestration_unrouted.unrouted: Importing from ID "1b49abe7-26db-4439-a715-c6d883acfb3e"...
pagerduty_event_orchestration_unrouted.unrouted: Import prepared!
  Prepared pagerduty_event_orchestration_unrouted for import
pagerduty_event_orchestration_unrouted.unrouted: Refreshing state... [id=1b49abe7-26db-4439-a715-c6d883acfb3e]

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

```
Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for this fix!! 👍

@stmcallister stmcallister merged commit 8b9d8c4 into PagerDuty:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants