-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsplunk-backend.tf
More file actions
51 lines (43 loc) · 1.21 KB
/
splunk-backend.tf
File metadata and controls
51 lines (43 loc) · 1.21 KB
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
47
48
49
50
51
terraform {
backend "s3" {
bucket = "answerking-splunk-terraform"
key = "answerking-splunk-terraform.tfstate"
region = "eu-west-2"
dynamodb_table = "answerking-splunk-terraform-state"
}
}
/*
resource "aws_s3_bucket" "terraform_backend_bucket" {
bucket = "answerking-splunk-terraform"
tags = {
Name = "answerking-splunk-terraform"
}
}
resource "aws_s3_bucket_acl" "terraform_backend_bucket_acl" {
bucket = aws_s3_bucket.terraform_backend_bucket.id
acl = "private"
}
resource "aws_s3_bucket_public_access_block" "terraform_backend_bucket_public_access_block" {
bucket = aws_s3_bucket.terraform_backend_bucket.id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}
resource "aws_s3_bucket_versioning" "terraform_backend_bucket_versioning" {
bucket = aws_s3_bucket.terraform_backend_bucket.id
versioning_configuration {
status = "Enabled"
}
}
resource "aws_dynamodb_table" "terraform_backend_state" {
name = "answerking-splunk-terraform-state"
read_capacity = 20
write_capacity = 20
hash_key = "LockID"
attribute {
name = "LockID"
type = "S"
}
}
*/