Skip to content

Commit 5925f91

Browse files
committed
[NDR-102] pr fixes
1 parent c66490e commit 5925f91

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

infrastructure/api.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

120118
resource "aws_api_gateway_gateway_response" "unauthorised_response" {

0 commit comments

Comments
 (0)