-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
52 lines (45 loc) · 1.31 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
output "vpc_id" {
description = "VPC ID"
value = module.networking.vpc_id
}
output "eks_cluster_endpoint" {
description = "EKS cluster endpoint"
value = module.eks.cluster_endpoint
}
output "database_endpoint" {
description = "RDS instance endpoint"
value = module.database.db_instance_endpoint
}
output "s3_bucket_name" {
description = "Name of the S3 bucket"
value = module.storage.bucket_name
}
output "metadata_backend_url" {
description = "PostgreSQL connection URL in the format required by Materialize"
value = format("postgres://%s:%s@%s/%s?sslmode=require",
var.database_username,
var.database_password,
module.database.db_instance_endpoint,
var.database_name
)
sensitive = true
}
output "persist_backend_url" {
description = "S3 connection URL in the format required by Materialize using IRSA"
value = format("s3://%s/%s:serviceaccount:%s:%s",
var.bucket_name,
var.environment,
var.namespace,
var.service_account_name
)
}
# oidc_provider_arn
output "oidc_provider_arn" {
description = "The ARN of the OIDC Provider"
value = module.eks.oidc_provider_arn
}
# aws_iam_role.materialize_s3.arn
output "materialize_s3_role_arn" {
description = "The ARN of the IAM role for Materialize"
value = aws_iam_role.materialize_s3.arn
}