forked from GSI-Xapiens-CSIRO/sVEP-BGSi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3.tf
executable file
·46 lines (40 loc) · 1.1 KB
/
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
39
40
41
42
43
44
45
46
resource "aws_s3_bucket" "svep-inputs" {
bucket_prefix = "svep-backend-inputs-"
force_destroy = false
tags = var.common-tags
}
resource "aws_s3_bucket" "svep-regions" {
bucket_prefix = "svep-backend-regions-"
force_destroy = true
tags = var.common-tags
}
resource "aws_s3_bucket" "svep-temp" {
bucket_prefix = "svep-backend-temp-"
force_destroy = true
tags = var.common-tags
}
resource "aws_s3_bucket" "svep-results" {
bucket_prefix = "svep-backend-results-"
force_destroy = true
tags = var.common-tags
}
resource "aws_s3_bucket" "svep-references" {
bucket_prefix = "svep-backend-references-"
force_destroy = false
tags = var.common-tags
}
resource "aws_s3_bucket_cors_configuration" "svep-results-cors" {
bucket = aws_s3_bucket.svep-results.id
cors_rule {
allowed_headers = ["*"]
allowed_methods = ["GET"]
allowed_origins = ["*"]
expose_headers = []
max_age_seconds = 3000
}
}
resource "aws_s3_bucket" "lambda-layers-bucket" {
bucket_prefix = "svep-backend-layers-"
force_destroy = true
tags = var.common-tags
}