Skip to content

Latest commit

 

History

History

s3-to-s3

S3 to S3

This example demonstrates how to create a S3 to S3 replication scenario using the AWS DataSync module.

AWS Datasync S3 to S3

Requirements

Name Version
terraform >= 1.0.0
aws >= 3.72.0
awscc >= 0.11.0

Providers

Name Version
aws >= 3.72.0
random n/a

Modules

Name Source Version
backup_tasks ../../modules/datasync-task n/a
dest_bucket terraform-aws-modules/s3-bucket/aws >=3.5.0
dest_log_delivery_bucket terraform-aws-modules/s3-bucket/aws >=3.5.0
s3_location ../../modules/datasync-locations n/a
source_bucket terraform-aws-modules/s3-bucket/aws >=3.5.0
source_log_delivery_bucket terraform-aws-modules/s3-bucket/aws >=3.5.0

Resources

Name Type
aws_kms_key.dest-kms resource
aws_kms_key.source-kms resource
aws_kms_key_policy.dest-kms-key-policy resource
aws_kms_key_policy.source-kms-key-policy resource
aws_s3_bucket_server_side_encryption_configuration.dest-bucket resource
aws_s3_bucket_server_side_encryption_configuration.dest-log-bucket resource
aws_s3_bucket_server_side_encryption_configuration.source-bucket resource
aws_s3_bucket_server_side_encryption_configuration.source-log-bucket resource
random_pet.prefix resource
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
efs_security_group_egress_cidr_block IPv4 CIDR block for egress traffic for EFS and Datasync security group string "0.0.0.0/0" no
region The AWS region for this deployment string "us-east-1" no
subnet-count Number of sunbets per type number 1 no
vpc_cidr_block VPC CIDR block for the creation of example VPC and subnets string "10.0.0.0/16" no

Outputs

Name Description
backup_tasks DataSync Task ARN
datasync_dest_role_arn DataSync destination S3 Location access IAM role ARN
datasync_src_role_arn DataSync source S3 Location access IAM role ARN
my_s3_locations DataSync S3 Location ARNs