Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update api_gateway_method_settings.html.markdown #29770

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions website/docs/r/api_gateway_method_settings.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,39 @@ resource "aws_api_gateway_method_settings" "path_specific" {
}
```

## Mapping settings to what AWS UI displays
The AWS Console for Logs/Tracing in the API Gateway stage editor has drop downs for CloudWatch Logs. The settings examples show how to map various settings combinations to what is displayed in the AWS UI

```terraform
#AWS UI = Off
settings {
logging_level = "OFF"
}

#AWS UI = Errors Only
settings {
logging_level = "ERROR"
metrics_enabled = true
data_trace_enabled = false
}

#AWS UI = Errors and Info Logs
settings{
logging_level="INFO"
metrics_enabled = true
data_trace_enabled = false
}

#AWS UI = Full Request and Response Logs
settings {
logging_level = "INFO"
metrics_enabled = true
data_trace_enabled = true
}
```



## Argument Reference

The following arguments are supported:
Expand Down