File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ module "create-doc-ref-lambda" {
8080 module . ndr-app-config . app_config_policy_arn ,
8181 ]
8282 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
83- resource_id = module. create-doc-ref-gateway . gateway_resource_id
83+ resource_id = try ( module. create-doc-ref-gateway [ 0 ] . gateway_resource_id , null )
8484 http_methods = [" POST" ]
8585 api_execution_arn = aws_api_gateway_rest_api. ndr_doc_store_api . execution_arn
8686 is_gateway_integration_needed = local. is_production ? false : true
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ module "update-upload-state-lambda" {
7676 module . ndr-app-config . app_config_policy_arn ,
7777 ]
7878 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
79- resource_id = module. update-upload-state-gateway . gateway_resource_id
79+ resource_id = try ( module. update-upload-state-gateway [ 0 ] . gateway_resource_id , null )
8080 http_methods = [" POST" ]
8181 api_execution_arn = aws_api_gateway_rest_api. ndr_doc_store_api . execution_arn
8282 is_gateway_integration_needed = local. is_production ? false : true
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ module "upload_confirm_result_lambda" {
7777 module . lloyd_george_reference_dynamodb_table . dynamodb_policy ,
7878 ]
7979 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
80- resource_id = module. upload_confirm_result_gateway . gateway_resource_id
80+ resource_id = try ( module. upload_confirm_result_gateway [ 0 ] . gateway_resource_id , null )
8181 http_methods = [" POST" ]
8282 api_execution_arn = aws_api_gateway_rest_api. ndr_doc_store_api . execution_arn
8383 is_gateway_integration_needed = local. is_production ? false : true
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ module "virus_scan_result_lambda" {
7979 module . lloyd_george_reference_dynamodb_table . dynamodb_policy ,
8080 ]
8181 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
82- resource_id = module. virus_scan_result_gateway . gateway_resource_id
82+ resource_id = try ( module. virus_scan_result_gateway [ 0 ] . gateway_resource_id , null )
8383 http_methods = [" POST" ]
8484 api_execution_arn = aws_api_gateway_rest_api. ndr_doc_store_api . execution_arn
8585 is_gateway_integration_needed = local. is_production ? false : true
You can’t perform that action at this time.
0 commit comments