-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
52 lines (48 loc) · 1.09 KB
/
provider.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
47
48
49
50
51
52
provider "aws" {
region = "ap-northeast-2"
profile = "jaehong21"
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
}
backend "s3" {
# S3 bucket name of .tfstate
bucket = "eywa-tfstate"
# tfstate path in S3
key = "terraform.tfstate"
region = "ap-northeast-2"
# name of dynamodb_table
# dynamodb_table = "eywa-tfstate-lock"
# aws-cli profile
profile = "jaehong21"
}
}
# resource "aws_s3_bucket" "tfstate_bucket" {
# bucket = "eywa-tfstate"
# }
# resource "aws_s3_bucket_versioning" "tfstate_versioning" {
# bucket = aws_s3_bucket.tfstate_bucket.id
# versioning_configuration {
# status = "Enabled"
# }
# }
# resource "aws_dynamodb_table" "terraform_state_lock" {
# name = "eywa-tfstate-lock"
# hash_key = "LockID"
# billing_mode = "PAY_PER_REQUEST"
# attribute {
# name = "LockID"
# type = "S"
# }
# }