File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ resource "aws_api_gateway_stage" "ndr_api" {
9696 depends_on = [aws_cloudwatch_log_group . ndr_api_log_group ]
9797}
9898
99- resource "aws_cloudwatch_log_group" "ndr_api_log_group " {
99+ resource "aws_cloudwatch_log_group" "api_gateway_stage " {
100100 # Name must follow this format to allow execution logging
101101 # https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html
102102 name = " API-Gateway-Execution-Logs_${ aws_api_gateway_rest_api . ndr_doc_store_api . id } /${ var . environment } "
103103 retention_in_days = 0
104104}
105105
106- resource "aws_api_gateway_method_settings" "ndr_api_log_settings " {
106+ resource "aws_api_gateway_method_settings" "api_gateway_stage " {
107107 rest_api_id = aws_api_gateway_rest_api. ndr_doc_store_api . id
108108 stage_name = aws_api_gateway_stage. ndr_api . stage_name
109109 method_path = " */*"
@@ -113,8 +113,6 @@ resource "aws_api_gateway_method_settings" "ndr_api_log_settings" {
113113 metrics_enabled = true
114114 data_trace_enabled = true
115115 }
116-
117- depends_on = [aws_api_gateway_stage . ndr_api ]
118116}
119117
120118resource "aws_api_gateway_gateway_response" "unauthorised_response" {
You can’t perform that action at this time.
0 commit comments