Skip to content

Instantly share code, notes, and snippets.

@amacal
Created November 7, 2020 12:27
Show Gist options
  • Save amacal/3c3d04c23cc18154119317747c6d9d74 to your computer and use it in GitHub Desktop.
Save amacal/3c3d04c23cc18154119317747c6d9d74 to your computer and use it in GitHub Desktop.
provider "aws" {
region = var.region
}
variable "region" {}
variable "account_id" {}
output "bucket_name" {
value = aws_s3_bucket.data.id
}
resource "aws_s3_bucket" "data" {
bucket = "la-labs-${var.account_id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment