Skip to content

Commit

Permalink
update documentation to include change in import instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Mar 15, 2022
1 parent 7a25cf7 commit 5f9267a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,17 @@ In addition to all arguments above, the following attributes are exported:
## Import
S3 bucket Object Lock configuration can be imported using the `bucket` e.g.,
S3 bucket Object Lock configuration can be imported in one of two ways.
If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider,
the S3 bucket Object Lock configuration resource should be imported using the `bucket` e.g.,
```
$ terraform import aws_s3_bucket_object_lock_configuration.example bucket-name
```
In addition, S3 bucket Object Lock configuration can be imported using the `bucket` and `expected_bucket_owner` separated by a comma (`,`) e.g.,
If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider,
the S3 bucket Object Lock configuration resource should be imported using the `bucket` and `expected_bucket_owner` separated by a comma (`,`) e.g.,
```
$ terraform import aws_s3_bucket_object_lock_configuration.example bucket-name,123456789012
Expand Down

0 comments on commit 5f9267a

Please sign in to comment.