Skip to content

Instantly share code, notes, and snippets.

@tcondeixa
Last active October 10, 2019 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcondeixa/a36a5c5b55c33bd499ad58169f19c6ab to your computer and use it in GitHub Desktop.
Save tcondeixa/a36a5c5b55c33bd499ad58169f19c6ab to your computer and use it in GitHub Desktop.
Terraform Basic Module AWS S3 Bucket - Outputs
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