Skip to content

Commit

Permalink
Merge pull request #23781 from hashicorp/docs-s3-bucket-server-side-e…
Browse files Browse the repository at this point in the history
…ncryption-usage-notes

docs/s3_bucket_server_side_encryption_configuration: add usage notes
  • Loading branch information
anGie44 authored Mar 21, 2022
2 parents 6997956 + 9d2a691 commit 5a3c8ba
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
}
```

## Usage Notes

~> **NOTE:** To avoid conflicts always add the following lifecycle object to the `aws_s3_bucket` resource of the source bucket.

This resource implements the same features that are provided by the `server_side_encryption_configuration` configuration block of the [`aws_s3_bucket` resource](s3_bucket.html.markdown). To avoid conflicts or unexpected apply results, a lifecycle configuration is needed on the `aws_s3_bucket` to ignore changes to the internal `server_side_encryption_configuration` configuration block. Failure to add the `lifecycle` configuration to the `aws_s3_bucket` will result in conflicting state results.

```
lifecycle {
ignore_changes = [
server_side_encryption_configuration
]
}
```

## Argument Reference

The following arguments are supported:
Expand Down

0 comments on commit 5a3c8ba

Please sign in to comment.