Skip to content

Instantly share code, notes, and snippets.

@TheoLeanse
Last active December 18, 2019 12:43
Show Gist options
  • Save TheoLeanse/86ae0db16494e4207d097f95b35a80bc to your computer and use it in GitHub Desktop.
Save TheoLeanse/86ae0db16494e4207d097f95b35a80bc to your computer and use it in GitHub Desktop.
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