Last active
October 10, 2019 12:42
-
-
Save tcondeixa/a36a5c5b55c33bd499ad58169f19c6ab to your computer and use it in GitHub Desktop.
Terraform Basic Module AWS S3 Bucket - Outputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output "s3_bucket" { | |
description = "map with arn, name and id of the s3 bucket example s3_bucket[\"arn\"]" | |
value = map ( | |
"arn", var.create ? aws_s3_bucket.bucket[0].arn : null, | |
"name", var.create ? aws_s3_bucket.bucket[0].bucket : null, | |
"id", var.create ? aws_s3_bucket.bucket[0].id : null | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment