-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
75 lines (66 loc) · 2.68 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
output "runner" {
value = {
install_iam_role_arn = module.runner_install_iam_role.iam_role_arn
}
description = "A map of runner attributes: install_iam_role_arn"
}
output "ecs_cluster" {
value = {
arn = module.ecs_cluster.cluster_arn,
id = module.ecs_cluster.cluster_id,
name = module.ecs_cluster.cluster_name
}
description = "A map of ecs_cluster attributes: arn, id, name."
}
output "vpc" {
// NOTE: these are declared here -
// https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest?tab=outputs
value = {
name = module.vpc.name
id = module.vpc.vpc_id
cidr = module.vpc.vpc_cidr_block
azs = module.vpc.azs
private_subnet_cidr_blocks = module.vpc.private_subnets_cidr_blocks
private_subnet_ids = module.vpc.private_subnets
public_subnet_cidr_blocks = module.vpc.public_subnets_cidr_blocks
public_subnet_ids = module.vpc.public_subnets
default_security_group_id = aws_security_group.runner.id
# default_security_group_arn = aws_security_group.runner.arn
db_subnet_group_name = module.vpc.database_subnet_group_name
db_subnet_group_id = module.vpc.database_subnet_group
}
description = "A map of vpc attributes: name, id, cidr, azs, private_subnet_cidr_blocks, private_subnet_ids, public_subnet_cidr_blocks, public_subnet_ids, default_security_group_id db_subnet_group_name, db_subnet_group_id."
}
output "account" {
value = {
id = data.aws_caller_identity.current.account_id
region = var.region
}
description = "A map of AWS account attributes: id, region"
}
output "ecr" {
value = {
repository_url = module.ecr.repository_url
repository_arn = module.ecr.repository_arn
repository_name = local.prefix
registry_id = module.ecr.repository_registry_id
registry_url = "${data.aws_caller_identity.current.account_id}.dkr.ecr.${var.region}.amazonaws.com"
}
description = "A map of ECR attributes: repository_url, repository_arn, repository_name, registry_id, registry_url."
}
output "public_domain" {
value = {
nameservers = var.enable_public_route53_zone ? aws_route53_zone.public[0].name_servers : []
name = var.enable_public_route53_zone ? aws_route53_zone.public[0].name : ""
zone_id = var.enable_public_route53_zone ? aws_route53_zone.public[0].id : ""
}
description = "A map of public Route53 zone attributes: nameservers, name, zone_id."
}
output "internal_domain" {
value = {
nameservers = aws_route53_zone.internal.name_servers
name = aws_route53_zone.internal.name
zone_id = aws_route53_zone.internal.id
}
description = "A map of internal Route53 zone attributes: nameservers, name, zone_id."
}