s3-bucket-with-cross-region-replication

babbel/s3-bucket-with-cross-region-replication/aws

Terraform Module HCL AWS

Terraform module creating two S3 buckets with cross-region replication

Install
module "s3-bucket-with-cross-region-replication" {
source = "babbel/s3-bucket-with-cross-region-replication/aws"
version = "2.0.1"
}
plain text: /constructs/tfmod-babbel-s3-bucket-with-cross-region-replication-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

S3 buckets with cross-region replication This module creates two versioned S3 buckets in different regions with cross-region replication. The replication configuration created by this module is V2, see Replication configuration for details. Delete marker replication is enabled. Usage Example: ``tf module "s3-backups-foo" { source = "babbel/s3-bucket-with-cross-region-replication/aws" version = "~> 1.0" providers = { aws.primary = aws.eu-west-1 aws.secondary = aws.eu-central-1 } primary_name = "example-primary" secondary_name = "example-secondary" } ` Customizing the buckets Both buckets are provided as outputs – so you can further customize them outside of this module. :warning: Please note: You cannot customize the bucket versioning. The versioning configuration provided by this module is

Inputs (6)
NameTypeDescriptionDefault
primary_namestringName of bucket in created via the `aws.primary` AWS provider. required
secondary_namestringName of bucket in created via the `aws.secondary` AWS provider. required
default_tagsmap(string)Map of tags assigned to all AWS resources created by this module. {}
force_destroystringWhether the deletion of the buckets created by this module will enforce the delefalse
primary_s3_bucket_tagsmap(string)Map of tags assigned to the primary S3 bucket created by this module. Tags in th{}
secondary_s3_bucket_tagsmap(string)Map of tags assigned to the secondary S3 bucket created by this module. Tags in {}
Outputs (2)
primary — The primary S3 bucket
secondary — The secondary S3 bucket
Resources (5)
aws_iam_roleaws_iam_role_policyaws_s3_bucketaws_s3_bucket_replication_configurationaws_s3_bucket_versioning
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.1
Cloud AWS
★ Stars1
Forks2
Total downloads54.5k
Inputs6
Outputs2
Resources5
LicenseMIT
Namespacebabbel
Updated