Skip to content

Commit

Permalink
Merge pull request #37870 from acwwat/d-aws_detective_organization_co…
Browse files Browse the repository at this point in the history
…nfiguration-fix_import_id

docs: Fix import ID desc for aws_detective_organization_configuration
  • Loading branch information
justinretzolk authored Jun 11, 2024
2 parents f9a6d96 + 8dd2a13 commit c79ab60
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "aws_detective_graph" "example" {
resource "aws_detective_organization_configuration" "example" {
auto_enable = true
graph_arn = aws_detective_graph.example.id
graph_arn = aws_detective_graph.example.graph_arn
}
```

Expand All @@ -40,17 +40,17 @@ This resource exports the following attributes in addition to the arguments abov

## Import

In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import `aws_detective_organization_admin_account` using the Detective Graph ID. For example:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import `aws_detective_organization_admin_account` using the behavior graph ARN. For example:

```terraform
import {
to = aws_detective_organization_configuration.example
id = "00b00fd5aecc0ab60a708659477e9617"
id = "arn:aws:detective:us-east-1:123456789012:graph:00b00fd5aecc0ab60a708659477e9617"
}
```

Using `terraform import`, import `aws_detective_organization_admin_account` using the Detective Graph ID. For example:
Using `terraform import`, import `aws_detective_organization_admin_account` using the behavior graph ARN. For example:

```console
% terraform import aws_detective_organization_configuration.example 00b00fd5aecc0ab60a708659477e9617
% terraform import aws_detective_organization_configuration.example arn:aws:detective:us-east-1:123456789012:graph:00b00fd5aecc0ab60a708659477e9617
```

0 comments on commit c79ab60

Please sign in to comment.