@thomas.solbjor her er "import" av tofu fra ditt repo med justeringer for å tilpasse patterns her. Også minimalisert til å kun opprette cluster, ingen managed services som postgres etc. Ta en titt. Co-authored-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Reviewed-on: #15 Reviewed-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Co-authored-by: Ghost <> Co-committed-by: Ghost <>
27 lines
752 B
HCL
27 lines
752 B
HCL
# ─── Cluster ─────────────────────────────────────────────────────────
|
|
|
|
output "cluster_name" {
|
|
description = "EKS cluster name"
|
|
value = aws_eks_cluster.main.name
|
|
}
|
|
|
|
output "aws_region" {
|
|
description = "AWS region"
|
|
value = var.region
|
|
}
|
|
|
|
output "oidc_issuer_url" {
|
|
description = "EKS OIDC issuer URL (for IRSA)"
|
|
value = aws_eks_cluster.main.identity[0].oidc[0].issuer
|
|
}
|
|
|
|
output "oidc_provider_arn" {
|
|
description = "IAM OIDC provider ARN (for IRSA trust policies)"
|
|
value = aws_iam_openid_connect_provider.eks.arn
|
|
}
|
|
|
|
output "vpc_id" {
|
|
description = "VPC ID"
|
|
value = aws_vpc.main.id
|
|
}
|