diff --git a/README.md b/README.md
index 214d6d1..93cff53 100644
--- a/README.md
+++ b/README.md
@@ -79,6 +79,7 @@ have a istio proxy configured, prevent communication with that pod.)
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
+| [aws](#requirement\_aws) | >= 5.14.0 |
| [helm](#requirement\_helm) | >= 2.11.0 |
| [kubernetes](#requirement\_kubernetes) | >= 2.23.0 |
@@ -86,6 +87,7 @@ have a istio proxy configured, prevent communication with that pod.)
| Name | Version |
|------|---------|
+| [aws](#provider\_aws) | 5.61.0 |
| [helm](#provider\_helm) | 2.14.0 |
| [kubernetes](#provider\_kubernetes) | 2.31.0 |
@@ -104,6 +106,8 @@ have a istio proxy configured, prevent communication with that pod.)
| [helm_release.ingress](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [helm_release.istiod](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [kubernetes_namespace.ns](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
+| [aws_lb.lb](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lb) | data source |
+| [kubernetes_service.istio_ingressgateway](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/service) | data source |
## Inputs
@@ -125,7 +129,7 @@ have a istio proxy configured, prevent communication with that pod.)
| Name | Description |
|------|-------------|
-| [istio\_namespace](#output\_istio\_namespace) | The namespace used by istio. |
+| [istio\_ingress\_lb](#output\_istio\_ingress\_lb) | The istio ingress load balancer dns\_name and zone\_id. |
| [module\_name](#output\_module\_name) | The name of this module. |
| [module\_version](#output\_module\_version) | The version of this module. |
diff --git a/aws_data.tf b/aws_data.tf
index 4df77ed..0d26c72 100644
--- a/aws_data.tf
+++ b/aws_data.tf
@@ -9,4 +9,4 @@ data "kubernetes_service" "istio_ingressgateway" {
data "aws_lb" "lb" {
depends_on = [helm_release.ingress]
name = split("-", data.kubernetes_service.istio_ingressgateway.status[0].load_balancer[0].ingress[0].hostname)[0]
-}
\ No newline at end of file
+}
diff --git a/outputs.tf b/outputs.tf
index 6596549..db559ad 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -13,6 +13,9 @@ output "module_version" {
}
output "istio_ingress_lb" {
- description = "The istio ingress load balancer DNS."
- value = data.aws_lb.lb.dns_name
+ description = "The istio ingress load balancer dns_name and zone_id."
+ value = {
+ dns_name = data.aws_lb.lb.dns_name
+ zone_id = data.aws_lb.lb.zone_id
+ }
}
diff --git a/versions.tf b/requirements.tf
similarity index 75%
rename from versions.tf
rename to requirements.tf
index 5f150af..ae62e15 100644
--- a/versions.tf
+++ b/requirements.tf
@@ -2,6 +2,10 @@ terraform {
required_version = ">= 0.13"
required_providers {
+ aws = {
+ source = "hashicorp/aws"
+ version = ">= 5.14.0"
+ }
helm = {
source = "hashicorp/helm"
version = ">= 2.11.0"