From 68f5d10012f4a3f5ec409aced74804d94761f0bf Mon Sep 17 00:00:00 2001 From: Tom Webber Date: Wed, 11 Oct 2023 15:54:25 +0100 Subject: [PATCH] add elements to deploy fix get_schema properties --- terraform/environments/data-platform/api.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/terraform/environments/data-platform/api.tf b/terraform/environments/data-platform/api.tf index dab2dc55641..5913903d79c 100644 --- a/terraform/environments/data-platform/api.tf +++ b/terraform/environments/data-platform/api.tf @@ -23,16 +23,19 @@ resource "aws_api_gateway_deployment" "deployment" { aws_api_gateway_resource.data_product_table, aws_api_gateway_resource.data_product_table_name, aws_api_gateway_resource.upload_data_for_data_product_table_name, + aws_api_gateway_resource.schema_for_data_product_table_name, aws_api_gateway_method.docs, aws_api_gateway_method.get_glue_metadata, aws_api_gateway_method.register_data_product, aws_api_gateway_method.upload_data_for_data_product_table_name, + aws_api_gateway_method.get_schema_for_data_product_table_name, aws_api_gateway_integration.docs_to_lambda, aws_api_gateway_integration.upload_data_for_data_product_table_name_to_lambda, aws_api_gateway_integration.proxy_to_lambda, aws_api_gateway_integration.docs_lambda_root, aws_api_gateway_integration.get_glue_metadata, - aws_api_gateway_integration.register_data_product_to_lambda + aws_api_gateway_integration.register_data_product_to_lambda, + aws_api_gateway_integration.get_schema_for_data_product_table_name_to_lambda ])) } @@ -174,8 +177,8 @@ resource "aws_api_gateway_method" "get_schema_for_data_product_table_name" { # /data-product/{data-product-name}/table/{table-name}/schema lambda integration resource "aws_api_gateway_integration" "get_schema_for_data_product_table_name_to_lambda" { - http_method = aws_api_gateway_method.upload_data_for_data_product_table_name.http_method - resource_id = aws_api_gateway_resource.upload_data_for_data_product_table_name.id + http_method = aws_api_gateway_method.get_schema_for_data_product_table_name.http_method + resource_id = aws_api_gateway_resource.get_schema_for_data_product_table_name.id rest_api_id = aws_api_gateway_rest_api.data_platform.id integration_http_method = "POST" type = "AWS_PROXY"