From 993d1b6eef72ce58a7569b418fcb8d3dadaf5974 Mon Sep 17 00:00:00 2001 From: jeremygovi Date: Tue, 10 May 2022 18:22:48 +0200 Subject: [PATCH] add useful output --- aws_s3_bucket_lifecycle_configuration.tf | 4 ++-- output.tf | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 output.tf diff --git a/aws_s3_bucket_lifecycle_configuration.tf b/aws_s3_bucket_lifecycle_configuration.tf index 4d45202..65d9659 100644 --- a/aws_s3_bucket_lifecycle_configuration.tf +++ b/aws_s3_bucket_lifecycle_configuration.tf @@ -10,7 +10,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "s3_bucket" { dynamic "transition" { - for_each = try(rule.value["transition"] , []) + for_each = try(rule.value["transition"], []) content { date = try(transition.value["date"], null) days = try(transition.value["days"], null) @@ -19,7 +19,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "s3_bucket" { } dynamic "expiration" { - for_each = try(rule.value["expiration"] , []) + for_each = try(rule.value["expiration"], []) content { date = try(expiration.value["date"], null) days = try(expiration.value["days"], null) diff --git a/output.tf b/output.tf new file mode 100644 index 0000000..0e616d0 --- /dev/null +++ b/output.tf @@ -0,0 +1,5 @@ +output "bucket_regional_domain_name" { + description = "The bucket_regional_domain_name" + value = aws_s3_bucket.s3_bucket.bucket_regional_domain_name +} +