Skip to content

Commit

Permalink
add elements to deploy
Browse files Browse the repository at this point in the history
fix get_schema properties
  • Loading branch information
tom-webber committed Oct 11, 2023
1 parent 47aecce commit 68f5d10
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions terraform/environments/data-platform/api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
]))
}

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 68f5d10

Please sign in to comment.