Skip to content

Commit

Permalink
add useful output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremygovi committed May 10, 2022
1 parent 27769b6 commit 993d1b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_s3_bucket_lifecycle_configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 993d1b6

Please sign in to comment.