terraform-aws-modules / terraform-aws-s3-bucket

Terraform module to create AWS S3 resources 🇺🇦

Home Page:https://registry.terraform.io/modules/terraform-aws-modules/s3-bucket/aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replication rule -- replicate all content

zsarion opened this issue · comments

commented

Hi team!

Was just wondering what the code is if I want to replicate everything in the bucket (not requiring a prefix) ?
Right now I have the following setup:
`
replication_configuration = {
role = aws_iam_role.replication.arn
rules = [
{
id = "ReplicateRule"
status = "Enabled"
priority = 10

    source_selection_criteria = {
      sse_kms_encrypted_objects = {
        enabled = true
      }
    }

    destination = {
      bucket             = module.cross_region_replicated_bucket.this_s3_bucket_arn
      storage_class      = "STANDARD"
      replica_kms_key_id = data.aws_kms_key.mykms_key.arn
      account_id         = data.aws_caller_identity.current.account_id
      access_control_translation = {
        owner = "Destination"
      }
 }`

However it does not seem to be replicating to the destination bucket. Is it because I need to specify a prefix="" ?

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

This issue was automatically closed because of stale in 10 days

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.