From 0e0c86f16ea1e948e365350743bf8db2c1cd0ef7 Mon Sep 17 00:00:00 2001 From: xpk Date: Fri, 12 Jan 2024 15:05:00 +0800 Subject: [PATCH] UPD: moved bucket replication test file from root to shared module --- modules/storage/s3-bucket-replication/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/storage/s3-bucket-replication/main.tf b/modules/storage/s3-bucket-replication/main.tf index 841e9d9..a5b5a4c 100644 --- a/modules/storage/s3-bucket-replication/main.tf +++ b/modules/storage/s3-bucket-replication/main.tf @@ -129,3 +129,9 @@ resource "aws_s3_bucket_replication_configuration" "replication-config" { } } } + +resource "aws_s3_object" "test-file" { + bucket = data.aws_s3_bucket.source-bucket.id + key = "replication-test-file" + content = "If this file shows up in the destination bucket, replication has been successfully configured." +} \ No newline at end of file