diff --git a/terraform/main.tf b/terraform/main.tf index 46f9762..7cf1153 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,10 +1,3 @@ resource "aws_s3_bucket" "shipthing" { bucket = "shipthing" } - -resource "aws_s3_bucket_logging" "shipthing" { - bucket = aws_s3_bucket.shipthing.id - - target_bucket = "shipthing-access-logs" - target_prefix = aws_s3_bucket.shipthing.id -} \ No newline at end of file diff --git a/terraform/provider.tf b/terraform/provider.tf index 12c0dbe..0ab91a9 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -1,3 +1,7 @@ terraform { backend "s3" {} } + +provider "aws" { + region = var.region +} \ No newline at end of file diff --git a/terraform/variables.tf b/terraform/variables.tf index 9e35138..905a247 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,9 +1,3 @@ variable "region" { default = "us-east-1" } - -provider "aws" { - region = var.region -} - -