File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,18 @@ module "fhir_document_reference_gateway" {
33 source = " ./modules/gateway"
44 api_gateway_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
55 parent_id = aws_api_gateway_rest_api. ndr_doc_store_api . root_resource_id
6- http_methods = [" GET" ]
6+ http_methods = [" POST " , " GET" ]
77 authorization = " NONE"
88 api_key_required = true
99 gateway_path = " DocumentReference"
1010 require_credentials = true
11- }
11+ }
12+
13+ # resource "aws_api_gateway_method" "get_document_references_fhir" {
14+ # count = local.is_production ? 0 : 1
15+ # rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
16+ # resource_id = module.fhir_document_reference_gateway[0].gateway_resource_id
17+ # http_method = "GET"
18+ # authorization = "NONE"
19+ # api_key_required = true
20+ # }
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ data "aws_iam_policy_document" "assume_role_policy_for_create_lambda" {
2323 type = " AWS"
2424 identifiers = compact ([
2525 module . create-doc-ref-lambda . lambda_execution_role_arn ,
26- local . is_production ? null : module . post-document-references-fhir-lambda [ 0 ] . lambda_execution_role_arn
26+ local . is_production ? null : null
2727 ])
28-
2928 }
3029 }
3130}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module "search-document-references-fhir-lambda" {
1414 ]
1515 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
1616 resource_id = module. fhir_document_reference_gateway [0 ]. gateway_resource_id
17- http_methods = [" GET" ]
17+ http_methods = [" GET" , " POST " ]
1818 api_execution_arn = aws_api_gateway_rest_api. ndr_doc_store_api . execution_arn
1919 lambda_environment_variables = {
2020 APPCONFIG_APPLICATION = module.ndr- app- config.app_config_application_id
You can’t perform that action at this time.
0 commit comments