Skip to content

Commit

Permalink
feat: use S3 replication rule V2 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
nozaq authored Apr 16, 2022
1 parent 6b3f1be commit 26e8493
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ See [the official document](https://www.terraform.io/docs/backends/types/s3.html
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.1.4 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.3 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
| <a name="provider_aws.replica"></a> [aws.replica](#provider\_aws.replica) | >= 4.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.3 |
| <a name="provider_aws.replica"></a> [aws.replica](#provider\_aws.replica) | >= 4.3 |

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0"
version = ">= 4.3"

configuration_aliases = [aws.replica]
}
Expand Down
7 changes: 6 additions & 1 deletion replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,14 @@ resource "aws_s3_bucket_replication_configuration" "state" {

rule {
id = "replica_configuration"
prefix = ""
status = "Enabled"

filter {}

delete_marker_replication {
status = "Disabled"
}

source_selection_criteria {
sse_kms_encrypted_objects {
status = "Enabled"
Expand Down

0 comments on commit 26e8493

Please sign in to comment.