-
Notifications
You must be signed in to change notification settings - Fork 4
/
github.tf
73 lines (60 loc) · 2.27 KB
/
github.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
data "github_team" "system-admin" {
slug = "system-admin"
}
# haxe.org
resource "github_actions_variable" "haxe-org-AWS_DEFAULT_REGION" {
repository = "haxe.org"
variable_name = "AWS_DEFAULT_REGION"
value = data.aws_region.current.name
}
resource "github_actions_variable" "haxe-org-AWS_ACCESS_KEY_ID" {
repository = "haxe.org"
variable_name = "AWS_ACCESS_KEY_ID"
value = aws_iam_access_key.haxe-org-ci.id
}
resource "github_actions_variable" "haxe-org-S3_BUCKET" {
repository = "haxe.org"
variable_name = "S3_BUCKET"
value = aws_s3_bucket.haxe-org.id
}
resource "github_actions_variable" "haxe-org-CLOUDFRONT_DISTRIBUTION_ID_STAGING" {
repository = "haxe.org"
variable_name = "CLOUDFRONT_DISTRIBUTION_ID_STAGING"
value = aws_cloudfront_distribution.staging-haxe-org.id
}
resource "github_actions_variable" "haxe-org-CLOUDFRONT_DISTRIBUTION_ID_MASTER" {
repository = "haxe.org"
variable_name = "CLOUDFRONT_DISTRIBUTION_ID_MASTER"
value = aws_cloudfront_distribution.haxe-org.id
}
resource "github_actions_secret" "haxe-org-AWS_SECRET_ACCESS_KEY" {
repository = "haxe.org"
secret_name = "AWS_SECRET_ACCESS_KEY"
plaintext_value = aws_iam_access_key.haxe-org-ci.secret
}
# api.haxe.org
resource "github_actions_variable" "api-haxe-org-AWS_DEFAULT_REGION" {
repository = "api.haxe.org"
variable_name = "AWS_DEFAULT_REGION"
value = data.aws_region.current.name
}
resource "github_actions_variable" "api-haxe-org-AWS_ACCESS_KEY_ID" {
repository = "api.haxe.org"
variable_name = "AWS_ACCESS_KEY_ID"
value = aws_iam_access_key.api-haxe-org-ci.id
}
resource "github_actions_variable" "api-haxe-org-S3_BUCKET" {
repository = "api.haxe.org"
variable_name = "S3_BUCKET"
value = module.s3_bucket_api-haxe-org.s3_bucket_id
}
resource "github_actions_variable" "api-haxe-org-CLOUDFRONT_DISTRIBUTION_ID" {
repository = "api.haxe.org"
variable_name = "CLOUDFRONT_DISTRIBUTION_ID"
value = module.cloudfront_api-haxe-org.cloudfront_distribution_id
}
resource "github_actions_secret" "api-haxe-org-AWS_SECRET_ACCESS_KEY" {
repository = "api.haxe.org"
secret_name = "AWS_SECRET_ACCESS_KEY"
plaintext_value = aws_iam_access_key.api-haxe-org-ci.secret
}