Skip to content

Instantly share code, notes, and snippets.

@TheoLeanse
Last active December 18, 2019 12:43
provider "aws" {
version = "~> 2.0"
region = "eu-west-1"
}
variable "user_name" {
default = "TODO"
}
resource "aws_s3_bucket" "s3_bucket" {
bucket = "talkin-terraform-${var.user_name}"
acl = "public-read"
}
output "bucket_domain_name" {
value = "${aws_s3_bucket.s3_bucket.bucket_domain_name}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment