-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcity_validation_s3.tf
45 lines (39 loc) · 1.12 KB
/
city_validation_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
variable "TF_VAR_aws_access_key" {}
variable "TF_VAR_aws_secret_key" {}
provider "aws" {
region = "us-west-2"
access_key = var.TF_VAR_aws_access_key
secret_key = var.TF_VAR_aws_secret_key
}
resource "aws_s3_bucket_object" "valid_elements" {
bucket = "city-validation-s3"
key = "results/valid_elements.json"
acl = "private"
content = file("${path.module}/results/valid_elements.json")
}
resource "aws_s3_bucket_object" "invalid_elements" {
bucket = "city-validation-s3"
key = "results/invalid_elements.json"
acl = "private"
content = file("${path.module}/results/invalid_elements.json")
}
resource "aws_s3_bucket_object" "unprocessable_files" {
bucket = "city-validation-s3"
key = "results/unprocessable_files.csv"
acl = "private"
content = file("${path.module}/results/unprocessable_files.csv")
}
terraform {
backend "s3" {
bucket = "city-validation-s3"
key = "terraform/terraform.tfstate"
region = "us-west-2"
encrypt = true
}
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0, < 4.0"
}
}
}