Skip to content

Commit

Permalink
r/aws_s3_bucket_object_lock_configuration(doc): fix import section fo…
Browse files Browse the repository at this point in the history
…rmatting (#39541)
  • Loading branch information
jar-b authored Sep 30, 2024
1 parent 45dbd39 commit 3b52512
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions website/docs/r/s3_bucket_object_lock_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ 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 S3 bucket Object Lock configuration using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:

If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, import using the `bucket`:
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import an S3 bucket Object Lock Configuration using one of two forms. If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, import using the `bucket`. For example:

```terraform
import {
Expand All @@ -87,22 +85,22 @@ import {
}
```

If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the `bucket` and `expected_bucket_owner`, separated by a comma (`,`). For example:

```terraform
import {
to = aws_s3_bucket_object_lock_configuration.example
id = "bucket-name,123456789012"
}
```

**Using `terraform import` to import** S3 bucket Object Lock configuration using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:

If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, import using the `bucket`:
**Using `terraform import`**, import an S3 bucket Object Lock Configuration using one of two forms. If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, import using the `bucket`. For example:

```console
% terraform import aws_s3_bucket_object_lock_configuration.example bucket-name
```

If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the `bucket` and `expected_bucket_owner`, separated by a comma (`,`). For example:

```console
% terraform import aws_s3_bucket_object_lock_configuration.example bucket-name,123456789012
Expand Down

0 comments on commit 3b52512

Please sign in to comment.