-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
88 lines (78 loc) · 2.13 KB
/
outputs.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
output "vpc" {
value = {
id = module.vpc.vpc_id
cidr = module.vpc.vpc_cidr
az_names = module.vpc.az_names
private_subnet_ids = module.vpc.private_subnet_ids
public_subnet_ids = module.vpc.public_subnet_ids
}
}
output "sg" {
value = {
bastion = module.sg.bastion.id
webserver = module.sg.webserver.id
mysql = module.sg.mysql.id
postgresql = module.sg.postgresql.id
redis = module.sg.redis.id
memcached = module.sg.memcached.id
load_balancer = module.sg.load_balancer.id
ecs = module.sg.ecs.id
}
}
output "rds" {
value = {
postgresql = {
address = module.rds.postgresql_address
postgresql_engine_versions = module.rds.postgresql_engine_versions
engine_version = module.rds.postgresql_engine_version
}
}
}
output "ecr" {
value = {
repository_url = aws_ecr_repository.main.repository_url
}
}
data "aws_caller_identity" "current" {}
output "account" {
value = {
account_id = data.aws_caller_identity.current.account_id
caller_arn = data.aws_caller_identity.current.arn
caller_user = data.aws_caller_identity.current.user_id
}
}
output "fargate_lb" {
value = {
lb_dns_name = module.ecs_fargate.lb_dns_name
lb_zone_id = module.ecs_fargate.lb_zone_id
cluster_id = module.ecs_fargate.cluster_id
cluster_name = module.ecs_fargate.cluster_name
}
}
output "route53_dns" {
value = {
www_name = module.route53.www_name
www_fqdn = module.route53.www_fqdn
non_www_name = module.route53.non_www_name
non_www_fqdn = module.route53.non_www_fqdn
}
}
output "ecs_task" {
value = data.template_file.sitemap.rendered
}
output "redis" {
value = {
address = module.redis.cluster_address
port = module.redis.cluster_port
url = local.redis_url
}
}
output "memcached" {
value = {
cluster_address = module.memcached.cluster_address
configuration_endpoint = module.memcached.configuration_endpoint
}
}
output "migration_comand" {
value = module.run_migration.command
}