From e1225376ff050f05802fedbe441ab4bc2f31fa29 Mon Sep 17 00:00:00 2001 From: Nicolas Lopes Date: Thu, 29 Feb 2024 13:20:21 -0300 Subject: [PATCH] remove bucket logging --- terraform/main.tf | 7 ------- terraform/provider.tf | 4 ++++ terraform/variables.tf | 6 ------ 3 files changed, 4 insertions(+), 13 deletions(-) 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 -} - -