-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
49 lines (34 loc) · 768 Bytes
/
main.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
# terraform {
# required_version = ">= 0.11.0"
# }
variable "db_secret" {
type = string
sensitive = true
}
resource "random_pet" "server" {
keepers = {
foo = "biz"
}
}
resource "random_pet" "database" {
keepers = {
foo = var.db_secret
}
}
output "db" {
value = var.db_secret
sensitive = true
}
# # data "external" "env" {
# # program = ["python", "-c", '"from os import environ; print({k:v for (k, v) in environ.items()})"']
# # }
# data "external" "env" {
# program = ["bash", "./get-env.sh"]
# }
# module "iam_user" {
# source = "terraform-aws-modules/iam/aws//modules/iam-user"
# name = "vasya.pupkin"
# force_destroy = true
# # pgp_key = "keybase:test"
# password_reset_required = false
# }