diff --git a/terraform/dev/s3.tf b/terraform/dev/s3.tf index c456657..730786a 100644 --- a/terraform/dev/s3.tf +++ b/terraform/dev/s3.tf @@ -1,7 +1,18 @@ module "s3_bucket" { source = "terraform-aws-modules/s3-bucket/aws" - bucket = "eleggo-dev-code-snippets" + bucket = "eleggo-dev-code-snippets-bucket" + acl = "public-read" + + versioning = { + enabled = true + } +} + +module "s3_bucket" { + source = "terraform-aws-modules/s3-bucket/aws" + + bucket = "eleggo-dev-recordings-bucket" acl = "public-read" versioning = { diff --git a/terraform/main/s3.tf b/terraform/main/s3.tf new file mode 100644 index 0000000..c3a227e --- /dev/null +++ b/terraform/main/s3.tf @@ -0,0 +1,21 @@ +module "s3_bucket" { + source = "terraform-aws-modules/s3-bucket/aws" + + bucket = "eleggo-main-code-snippets-bucket" + acl = "private" + + versioning = { + enabled = true + } +} + +module "s3_bucket" { + source = "terraform-aws-modules/s3-bucket/aws" + + bucket = "eleggo-main-recordings-bucket" + acl = "private" + + versioning = { + enabled = true + } +} \ No newline at end of file