Skip to content

Commit b9b20f2

Browse files
committed
adds s3 sub module
1 parent 9f283e7 commit b9b20f2

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

modules/s3/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "aws_s3_bucket" "this" {
2+
bucket = var.name
3+
4+
tags = var.tags
5+
}

modules/s3/outputs.tf

Whitespace-only changes.

modules/s3/variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
variable "name" {
2+
description = "Name of the bucket. If omitted, Terraform will assign a random, unique name."
3+
type = string
4+
}
5+
6+
variable "tags" {
7+
description = "(Optional) Map of tags to assign to the bucket."
8+
type = map(string)
9+
default = {}
10+
}

modules/s3/versions.tf

Whitespace-only changes.

0 commit comments

Comments
 (0)