-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathproviders.tf
90 lines (83 loc) · 1.84 KB
/
providers.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.52"
}
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.39"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.30"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.13"
}
gandi = {
source = "go-gandi/gandi"
version = "~> 2.3"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.34"
}
github = {
source = "integrations/github"
version = "~> 6.2"
}
random = {
source = "hashicorp/random"
version = "~> 3.6"
}
grafana = {
source = "grafana/grafana"
version = "~> 2.19"
}
}
backend "s3" {
bucket = "haxe-terraform"
key = "haxe.tfstate"
dynamodb_table = "haxe-terraform"
# AWS_DEFAULT_REGION
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
}
}
provider "digitalocean" {
# DIGITALOCEAN_ACCESS_TOKEN
# SPACES_ACCESS_KEY_ID
# SPACES_SECRET_ACCESS_KEY
}
provider "aws" {
# AWS_DEFAULT_REGION
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
}
provider "aws" {
alias = "us-east-1"
region = "us-east-1"
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
}
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
data "aws_canonical_user_id" "current" {}
data "aws_availability_zones" "available" {}
provider "github" {
owner = "HaxeFoundation"
app_auth {
id = 314905
installation_id = 36157157
pem_file = data.aws_ssm_parameter.haxe-terraform-github-app-pem.value
}
}
provider "gandi" {
key = data.aws_ssm_parameter.gandi_api_key.value
}
provider "cloudflare" {
api_token = data.aws_ssm_parameter.cloudflare_api_token.value
}