Skip to content

Commit

Permalink
Update module
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Sharp committed Apr 29, 2020
1 parent 8b5445d commit fb4024c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
provider "aws" {
region = var.region
}

resource "aws_s3_bucket" "bucket" {
bucket = "${var.prefix}-${var.name}"
acl = "public-read"
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "endpoint" {
value = "${aws_s3_bucket.bucket.website_endpoint}/index.html"
value = aws_s3_bucket.bucket.website_endpoint
}
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
variable "region" {}
variable "prefix" {}
variable "name" {}

0 comments on commit fb4024c

Please sign in to comment.