-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
28 lines (26 loc) · 1.16 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
locals {
kubernetes_zones = join(",", module.anyscale_vpc.availability_zones)
}
output "eks_cluster_name" {
description = "The name of the EKS cluster."
value = module.anyscale_eks_cluster.eks_cluster_name
}
output "anyscale_register_command" {
description = <<-EOF
Anyscale register command.
This output can be used with the Anyscale CLI to register a new Anyscale Cloud.
You will need to replace `<CUSTOMER_DEFINED_NAME>` with a name of your choosing before running the Anyscale CLI command.
EOF
value = <<-EOT
anyscale cloud register --provider aws \
--name <CUSTOMER_DEFINED_NAME> \
--region ${var.aws_region} \
--compute-stack k8s \
--anyscale-iam-role-id ${module.anyscale_iam_roles.iam_anyscale_access_role_arn} \
--s3-bucket-id ${module.anyscale_s3.s3_bucket_id} \
--kubernetes-namespaces ${module.anyscale_k8s_namespace.anyscale_kubernetes_namespace_name} \
--kubernetes-ingress-external-address ${module.anyscale_k8s_helm.nginx_ingress_lb_hostname[0]} \
--kubernetes-zones ${local.kubernetes_zones} \
--anyscale-operator-iam-identity ${module.anyscale_iam_roles.iam_anyscale_eks_node_role_arn}
EOT
}