Skip to content

Commit 2aafb54

Browse files
committed
no wonder access didn't work, i missed the deployment
1 parent 85b9bec commit 2aafb54

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

terraform-unity/modules/terraform-unity-sps-airflow/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ No modules.
3232

3333
| Name | Type |
3434
|------|------|
35+
| [aws_api_gateway_deployment.airflow-api-gateway-deployment](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_deployment) | resource |
3536
| [aws_api_gateway_integration.rest_api_integration_for_airflow_api](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_integration) | resource |
3637
| [aws_api_gateway_method.rest_api_method_for_airflow_proxy_method](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_method) | resource |
3738
| [aws_api_gateway_resource.rest_api_resource_airflow_api_path](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_resource) | resource |
@@ -108,6 +109,7 @@ No modules.
108109
| <a name="input_kubernetes_namespace"></a> [kubernetes\_namespace](#input\_kubernetes\_namespace) | The kubernetes namespace for Airflow resources. | `string` | n/a | yes |
109110
| <a name="input_project"></a> [project](#input\_project) | The project or mission deploying Unity SPS | `string` | n/a | yes |
110111
| <a name="input_release"></a> [release](#input\_release) | The software release version. | `string` | n/a | yes |
112+
| <a name="input_rest_api_stage"></a> [rest\_api\_stage](#input\_rest\_api\_stage) | REST API Stage Name | `string` | `"dev"` | no |
111113
| <a name="input_service_area"></a> [service\_area](#input\_service\_area) | The service area owner of the resources being deployed | `string` | n/a | yes |
112114
| <a name="input_venue"></a> [venue](#input\_venue) | The MCP venue in which the cluster will be deployed (dev, test, prod) | `string` | n/a | yes |
113115

terraform-unity/modules/terraform-unity-sps-airflow/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,13 @@ resource "aws_api_gateway_integration" "rest_api_integration_for_airflow_api" {
603603
depends_on = [data.aws_api_gateway_vpc_link.rest_api_unity_vpc_link]
604604
}
605605

606+
# API Gateway deployment
607+
resource "aws_api_gateway_deployment" "airflow-api-gateway-deployment" {
608+
rest_api_id = data.aws_api_gateway_rest_api.rest_api.id
609+
stage_name = var.rest_api_stage
610+
depends_on = [aws_api_gateway_integration.rest_api_integration_for_airflow_api]
611+
}
612+
606613
resource "aws_ssm_parameter" "airflow_ui_url" {
607614
name = format("/%s", join("/", compact(["", var.project, var.venue, var.service_area, "processing", "airflow", "ui_url"])))
608615
description = "The URL of the Airflow UI."

terraform-unity/modules/terraform-unity-sps-airflow/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,10 @@ variable "docker_images" {
7575
variable "karpenter_node_pools" {
7676
description = "Names of the Karpenter node pools"
7777
type = list(string)
78+
}
79+
80+
variable "rest_api_stage" {
81+
type = string
82+
description = "REST API Stage Name"
83+
default = "dev"
7884
}

terraform-unity/modules/terraform-unity-sps-ogc-processes-api/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ No modules.
2222

2323
| Name | Type |
2424
|------|------|
25+
| [aws_api_gateway_deployment.ogc-api-gateway-deployment](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_deployment) | resource |
2526
| [aws_api_gateway_integration.rest_api_integration_for_ogc_api](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_integration) | resource |
2627
| [aws_api_gateway_method.rest_api_method_for_ogc_proxy_method](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_method) | resource |
2728
| [aws_api_gateway_resource.rest_api_resource_management_path](https://registry.terraform.io/providers/hashicorp/aws/5.67.0/docs/resources/api_gateway_resource) | resource |
@@ -73,6 +74,7 @@ No modules.
7374
| <a name="input_kubernetes_namespace"></a> [kubernetes\_namespace](#input\_kubernetes\_namespace) | The kubernetes namespace for the API's resources. | `string` | n/a | yes |
7475
| <a name="input_project"></a> [project](#input\_project) | The project or mission deploying Unity SPS | `string` | n/a | yes |
7576
| <a name="input_release"></a> [release](#input\_release) | The software release version. | `string` | n/a | yes |
77+
| <a name="input_rest_api_stage"></a> [rest\_api\_stage](#input\_rest\_api\_stage) | REST API Stage Name | `string` | `"dev"` | no |
7678
| <a name="input_service_area"></a> [service\_area](#input\_service\_area) | The service area owner of the resources being deployed | `string` | n/a | yes |
7779
| <a name="input_venue"></a> [venue](#input\_venue) | The MCP venue in which the cluster will be deployed (dev, test, prod) | `string` | n/a | yes |
7880

terraform-unity/modules/terraform-unity-sps-ogc-processes-api/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ resource "aws_api_gateway_integration" "rest_api_integration_for_ogc_api" {
377377
depends_on = [data.aws_api_gateway_vpc_link.rest_api_unity_vpc_link]
378378
}
379379

380+
# API Gateway deployment
381+
resource "aws_api_gateway_deployment" "ogc-api-gateway-deployment" {
382+
rest_api_id = data.aws_api_gateway_rest_api.rest_api.id
383+
stage_name = var.rest_api_stage
384+
depends_on = [aws_api_gateway_integration.rest_api_integration_for_ogc_api]
385+
}
386+
380387
resource "aws_ssm_parameter" "ogc_processes_ui_url" {
381388
name = format("/%s", join("/", compact(["", var.project, var.venue, var.service_area, "processing", "ogc_processes", "ui_url"])))
382389
description = "The URL of the OGC Proccesses API Docs UI."

0 commit comments

Comments
 (0)