Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycook123 committed Jun 4, 2024
1 parent 47f89aa commit 69698ae
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ module "s3-source" {
########################################################################
# uncomment the below code only after the creation of buckets in step 1
########################################################################
replication_role_arns = [module.role-s3-replication.role_arn]

replication_configuration = {
role_name = module.role-s3-replication.role_name
rules = [
{
id = "bar"
status = "Enabled"
priority = 1

destination = {
bucket = "DESTINATION_BUCKET_ARN_GOES_HERE"
storage_class = "STANDARD"
replica_kms_key_id = "DESTINATION_KMS_KEY_ARN_GOES_HERE"
}

filter = {
prefix = "logs"
tags = {
ReplicateMe = "Yes"
}
}
}
]
}
# replication_role_arns = [module.role-s3-replication.role_arn]

# replication_configuration = {
# role_name = module.role-s3-replication.role_name
# rules = [
# {
# id = "bar"
# status = "Enabled"
# priority = 1

# destination = {
# bucket = "DESTINATION_BUCKET_ARN_GOES_HERE"
# storage_class = "STANDARD"
# replica_kms_key_id = "DESTINATION_KMS_KEY_ARN_GOES_HERE"
# }

# filter = {
# prefix = "logs"
# tags = {
# ReplicateMe = "Yes"
# }
# }
# }
# ]
# }
}

module "s3-dest" {
Expand All @@ -77,29 +77,29 @@ module "s3-dest" {
############################################################################
#uncomment the below code only after provisioning of the bucket in step 1
############################################################################
replication_role_arns = [module.role-s3-replication.role_arn]

replication_configuration = {
role_name = module.role-s3-replication.role_name
rules = [
{
id = "bar"
status = "Enabled"
priority = 1

destination = {
bucket = "SOURCE_BUCKET_ARN_GOES_HERE"
storage_class = "STANDARD"
replica_kms_key_id = "SOURCE_KMS_KEY_ARN_GOES_HERE"
}

filter = {
prefix = "logs"
tags = {
ReplicateMe = "Yes"
}
}
}
]
}
# replication_role_arns = [module.role-s3-replication.role_arn]

# replication_configuration = {
# role_name = module.role-s3-replication.role_name
# rules = [
# {
# id = "bar"
# status = "Enabled"
# priority = 1

# destination = {
# bucket = "SOURCE_BUCKET_ARN_GOES_HERE"
# storage_class = "STANDARD"
# replica_kms_key_id = "SOURCE_KMS_KEY_ARN_GOES_HERE"
# }

# filter = {
# prefix = "logs"
# tags = {
# ReplicateMe = "Yes"
# }
# }
# }
# ]
# }
}

0 comments on commit 69698ae

Please sign in to comment.