-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
73 lines (59 loc) · 2.05 KB
/
outputs.tf
File metadata and controls
73 lines (59 loc) · 2.05 KB
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
output "cluster_name" {
value = module.eks.cluster_name
description = "Nome do cluster EKS"
}
output "api_gateway_url" {
value = aws_apigatewayv2_api.hackathon_api.api_endpoint
description = "URL do API Gateway"
}
output "api_gateway_id" {
value = aws_apigatewayv2_api.hackathon_api.id
description = "ID do API Gateway"
}
output "eks_node_sg_id" {
value = module.eks.node_security_group_id
description = "ID do security group dos nodes do EKS"
}
output "database_identifier" {
value = aws_db_instance.hackathon_psql_db.identifier
description = "O ID da instância RDS"
}
output "database_uri" {
value = aws_db_instance.hackathon_psql_db.endpoint
description = "O endpoint da instância RDS"
}
output "order_created_topic_arn" {
value = aws_sns_topic.video_events.arn
description = "O ARN do tópico SNS de eventos de vídeo"
}
output "video_processor_ecr_repository_uri" {
description = "URI of the Video Processor ECR public repository"
value = aws_ecrpublic_repository.video_processor.repository_uri
}
output "ecr_public_alias" {
description = "Public ECR registry alias (used to form public.ecr.aws/<alias>/...). Exposed so CI can use it as ECR_PUBLIC_ALIAS."
value = split("/", aws_ecrpublic_repository.video_processor.repository_uri)[1]
}
#############################################
# EKS - Outputs necessários para IRSA
#############################################
output "oidc_provider_arn" {
description = "ARN do OIDC Provider do EKS (usado para IRSA)"
value = module.eks.oidc_provider_arn
}
output "oidc_provider_url" {
description = "URL do OIDC Provider do EKS"
value = module.eks.oidc_provider
}
output "vpc_id" {
description = "ID da VPC onde o EKS e RDS estão provisionados"
value = module.vpc.vpc_id
}
output "private_subnets" {
description = "IDs das subnets privadas da VPC"
value = module.vpc.private_subnets
}
output "rds_sg_id" {
description = "ID do security group associado ao RDS"
value = aws_security_group.rds.id
}