-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsecrets.tf
45 lines (42 loc) · 1.26 KB
/
secrets.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
resource "random_password" "ca_passkey" {
length = 31
}
module "ca_passkey" {
source = "registry.infrahouse.com/infrahouse/secret/aws"
version = "0.5.0"
secret_description = "OpenVPN CA Key Passphrase"
secret_name_prefix = "openvpn_ca_passphrase"
secret_value = random_password.ca_passkey.result
tags = local.default_module_tags
readers = [
module.instance_profile.instance_role_arn
]
}
resource "random_password" "flask_secret_key" {
special = false
length = 31
}
module "flask_secret_key" {
source = "registry.infrahouse.com/infrahouse/secret/aws"
version = "0.5.0"
secret_description = "Flask secret key"
secret_name_prefix = "flask_secret_key"
secret_value = random_password.flask_secret_key.result
tags = local.default_module_tags
readers = [
aws_iam_role.openvpn_portal_role.arn
]
}
module "google_client" {
source = "infrahouse/secret/aws"
version = "0.5.0"
secret_description = "A JSON with Google OAuth Client ID"
secret_name_prefix = "google_client"
tags = local.default_module_tags
readers = [
aws_iam_role.openvpn_portal_role.arn
]
writers = [
var.google_oauth_client_writer
]
}