From 197e09ed9bcac6917924103a622265b01a005628 Mon Sep 17 00:00:00 2001 From: "Brian H. Skafte" Date: Mon, 29 Aug 2022 14:28:28 +0200 Subject: [PATCH 1/2] fix tuple empty error when module is disabled --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 49d0cc2..3cf2016 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,7 @@ locals { enabled = module.this.enabled - s3_arn_prefix = "arn:${one(data.aws_partition.default[*].partition)}:s3:::" + s3_arn_prefix = local.enabled ? "arn:${one(data.aws_partition.default[*].partition)}:s3:::" : null is_vpc = var.vpc_id != null From fb999c811ef9c143c44eb5bff8d417f666ce50c2 Mon Sep 17 00:00:00 2001 From: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:38:52 +0000 Subject: [PATCH 2/2] Auto Format --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3865b18..3f0ebd7 100644 --- a/README.md +++ b/README.md @@ -384,7 +384,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply [![README Footer][readme_footer_img]][readme_footer_link] [![Beacon][beacon]][website] - + [logo]: https://cloudposse.com/logo-300x69.svg [docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-transfer-sftp&utm_content=docs [website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-transfer-sftp&utm_content=website @@ -415,3 +415,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply [share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-transfer-sftp [share_email]: mailto:?subject=terraform-aws-transfer-sftp&body=https://github.com/cloudposse/terraform-aws-transfer-sftp [beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-transfer-sftp?pixel&cs=github&cm=readme&an=terraform-aws-transfer-sftp +