# # Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # # #KMS not available - either SSE-S3 or SSE-C resource "aws_s3_bucket" "s3_bucket_outposts_logging" { bucket = var.s3_bucket_outposts_logging_name acl = "private" server_side_encryption_configuration { rule { apply_server_side_encryption_by_default { sse_algorithm = "AES256" } } } tags = merge( local.common_tags, { "Purpose" = "S3 bucket for outposts logging" }, ) } resource "aws_s3_bucket_policy" "s3_policy_outposts_logging" { bucket = aws_s3_bucket.s3_bucket_outposts_logging.id policy = <