Skip to content

Commit

Permalink
hardcoding random bit in
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-heery committed Sep 16, 2024
1 parent 33ece74 commit a898ee9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/unit-test/main.tf
Original file line number Diff line number Diff line change
@@ -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 = "../.."
Expand Down Expand Up @@ -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" {
Expand All @@ -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
}
Expand Down

0 comments on commit a898ee9

Please sign in to comment.