From 4b054b0ef01afa827b2cd760785d7943efc6d0c2 Mon Sep 17 00:00:00 2001 From: Leo <38137291+lezavala@users.noreply.github.com> Date: Fri, 28 Jun 2019 12:38:09 -0700 Subject: [PATCH] Fixes pipeline label for s3. (#3) --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 338e4ec..9e8c8a6 100644 --- a/main.tf +++ b/main.tf @@ -22,7 +22,7 @@ resource "aws_s3_bucket" "default" { lifecycle_rule { id = "code" enabled = "${var.pipeline_bucket_lifecycle_enabled}" - prefix = "${format("%.20s/code/", module.codebuild_label.id)}" + prefix = "${format("%.20s/code/", module.codepipeline_label.id)}" abort_incomplete_multipart_upload_days = "7" noncurrent_version_expiration { @@ -37,7 +37,7 @@ resource "aws_s3_bucket" "default" { lifecycle_rule { id = "task" enabled = "${var.pipeline_bucket_lifecycle_enabled}" - prefix = "${format("%.20s/task/", module.codebuild_label.id)}" + prefix = "${format("%.20s/task/", module.codepipeline_label.id)}" abort_incomplete_multipart_upload_days = "7" noncurrent_version_expiration {