-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy paths3.tf
38 lines (33 loc) · 940 Bytes
/
s3.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
###################################
# S3 bucket for static
###################################
resource "aws_s3_bucket" "static" {
bucket = "${var.region}-${var.env}-${var.project_name}-${lookup(var.s3, "static_bucket_name")}"
acl = "private"
tags {
type = "static"
env = "${var.env}"
}
}
###################################
# S3 bucket for alb-logs
###################################
resource "aws_s3_bucket" "alb-logs" {
bucket = "${var.region}-${var.env}-${var.project_name}-${lookup(var.s3, "alb_log_bucket_name")}"
acl = "private"
tags {
type = "alblogs"
env = "${var.env}"
}
}
###################################
# S3 bucket for cf-logs
###################################
resource "aws_s3_bucket" "cf-logs" {
bucket = "${var.region}-${var.env}-${var.project_name}-${lookup(var.s3, "cf_log_bucket_name")}"
acl = "private"
tags {
type = "cflogs"
env = "${var.env}"
}
}