From a898ee954e5af678757fac9ea1cef9fb2d5054f5 Mon Sep 17 00:00:00 2001 From: matt-heery Date: Mon, 16 Sep 2024 17:39:28 +0100 Subject: [PATCH] hardcoding random bit in --- test/unit-test/main.tf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/unit-test/main.tf b/test/unit-test/main.tf index b32ce3a..23227fa 100644 --- a/test/unit-test/main.tf +++ b/test/unit-test/main.tf @@ -1,7 +1,3 @@ -locals { - timestamp = formatdate("YYYYMMDDhhmmss", timestamp()) -} - module "s3" { #checkov:skip=CKV_AWS_300: "Ensure S3 lifecycle configuration sets period for aborting failed uploads - This is not needed in our tests" source = "../.." @@ -63,11 +59,11 @@ module "s3_with_notification" { } resource "aws_s3_bucket" "non-modulised-bucket" { - bucket = "log-test-bucket-${local.timestamp}" + bucket = "log-test-bucket-051683332738327" } resource "aws_s3_bucket" "non-modulised-bucket-2" { - bucket = "log-test-bucket-2-${local.timestamp}" + bucket = "log-test-bucket-2-051683332738327" } module "dummy_s3_log_bucket" { @@ -90,8 +86,8 @@ module "s3_with_log_bucket" { bucket_prefix = "unit-test-bucket-with-logs" force_destroy = true log_buckets = tomap({ "main_log_bucket" : module.dummy_s3_log_bucket.bucket }) - log_bucket_names = toset(["log-test-bucket-${local.timestamp}"]) - log_bucket = "log-test-bucket-2-${local.timestamp}" + log_bucket_names = toset(["log-test-bucket-051683332738327"]) + log_bucket = "log-test-bucket-2-051683332738327" log_prefix = "logs/" tags = local.tags }