Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/s3_bucket_server_side_encryption_configuration: add usage notes #23781

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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