Skip to content

Commit

Permalink
Fix destination subscription import instructions typo (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanhuynh authored Jun 21, 2024
1 parent c30a3fd commit 35c9512
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docs/resources/destination_subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ subcategory: ""
description: |-
Configures a Destination subscription to an action. For more information, visit the Segment docs https://segment.com/docs/connections/destinations/actions/.
Import
In Terraform v1.5.0 and later, use an import block https://developer.hashicorp.com/terraform/language/import with <id>. For example:
In Terraform v1.5.0 and later, use an import block https://developer.hashicorp.com/terraform/language/import with <destination_id>:<subscription_id>. For example:
terraform
import {
to = segment_destination_subscription.example
id = "<id>"
id = "<destination_id>:<subscription_id>"
}
Otherwise, use terraform import with <id>. For example:
Otherwise, use terraform import with <destination_id>:<subscription_id>. For example:
console
terraform import segment_destination_subscription.example <id>
terraform import segment_destination_subscription.example <destination_id>:<subscription_id>
---

# segment_destination_subscription (Resource)
Expand All @@ -23,19 +23,19 @@ Configures a Destination subscription to an action. For more information, visit

## Import

In Terraform v1.5.0 and later, use an [import block](https://developer.hashicorp.com/terraform/language/import) with `<id>`. For example:
In Terraform v1.5.0 and later, use an [import block](https://developer.hashicorp.com/terraform/language/import) with `<destination_id>:<subscription_id>`. For example:

```terraform
import {
to = segment_destination_subscription.example
id = "<id>"
id = "<destination_id>:<subscription_id>"
}
```

Otherwise, use `terraform import` with `<id>`. For example:
Otherwise, use `terraform import` with `<destination_id>:<subscription_id>`. For example:

```console
terraform import segment_destination_subscription.example <id>
terraform import segment_destination_subscription.example <destination_id>:<subscription_id>
```

## Example Usage
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/destination_subscription_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (r *destinationSubscriptionResource) Metadata(_ context.Context, req resour
func (r *destinationSubscriptionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "Configures a Destination subscription to an action. For more information, visit the [Segment docs](https://segment.com/docs/connections/destinations/actions/).\n\n" +
docs.GenerateImportDocs("<id>", "segment_destination_subscription"),
docs.GenerateImportDocs("<destination_id>:<subscription_id>", "segment_destination_subscription"),
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
Expand Down

0 comments on commit 35c9512

Please sign in to comment.