From fb4024ca6acaaadf3b4f774a6626a6f12d47c9ff Mon Sep 17 00:00:00 2001 From: Rachel Sharp Date: Wed, 29 Apr 2020 14:18:04 -0400 Subject: [PATCH] Update module --- main.tf | 4 ++++ outputs.tf | 2 +- variables.tf | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 5369b4f..797f073 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,7 @@ +provider "aws" { + region = var.region +} + resource "aws_s3_bucket" "bucket" { bucket = "${var.prefix}-${var.name}" acl = "public-read" diff --git a/outputs.tf b/outputs.tf index 2a8d14f..6860eb0 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,3 @@ output "endpoint" { - value = "${aws_s3_bucket.bucket.website_endpoint}/index.html" + value = aws_s3_bucket.bucket.website_endpoint } diff --git a/variables.tf b/variables.tf index 46b4ef7..d8a8cde 100644 --- a/variables.tf +++ b/variables.tf @@ -1,2 +1,3 @@ +variable "region" {} variable "prefix" {} variable "name" {}