Skip to content

Commit 4588fae

Browse files
committed
update documentation
1 parent f35d554 commit 4588fae

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

website/docs/r/emrserverless_application.html.markdown

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ resource "aws_emrserverless_application" "example" {
7272
enabled = true
7373
log_group_name = "/aws/emr-serverless/example"
7474
log_stream_name_prefix = "spark-logs"
75-
log_types = {
76-
"SPARK_DRIVER" = "STDOUT,STDERR"
77-
"SPARK_EXECUTOR" = "STDOUT"
75+
76+
log_types {
77+
name = "SPARK_DRIVER"
78+
values = ["STDOUT", "STDERR"]
7879
}
79-
}
8080
81-
s3_monitoring_configuration {
82-
log_uri = "s3://my-bucket/logs/"
81+
log_types {
82+
name = "SPARK_EXECUTOR"
83+
values = ["STDOUT"]
84+
}
8385
}
8486
8587
managed_persistence_monitoring_configuration {
@@ -176,8 +178,13 @@ This resource supports the following arguments:
176178
* `enabled` - (Required) Enables CloudWatch logging.
177179
* `log_group_name` - (Optional) The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
178180
* `log_stream_name_prefix` - (Optional) Prefix for the CloudWatch log stream name.
181+
* `log_types` - (Optional) The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. See [log_types](#log_types-arguments) for more details.
179182
* `encryption_key_arn` - (Optional) The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.
180-
* `log_types` - (Optional) The types of logs that you want to publish to CloudWatch. If you don't specify any log types, driver STDOUT and STDERR logs will be published to CloudWatch Logs by default. Specify as a map where keys are worker types (`SPARK_DRIVER`, `SPARK_EXECUTOR`, `HIVE_DRIVER`, `TEZ_TASK`) and values are comma-separated log types (`STDOUT`, `STDERR`, `HIVE_LOG`, `TEZ_AM`, `SYSTEM_LOGS`).
183+
184+
##### log_types Arguments
185+
186+
* `name` - (Required) The worker type. Valid values are `SPARK_DRIVER`, `SPARK_EXECUTOR`, `HIVE_DRIVER`, and `TEZ_TASK`.
187+
* `values` - (Required) The list of log types to publish. Valid values are `STDOUT`, `STDERR`, `HIVE_LOG`, `TEZ_AM`, and `SYSTEM_LOGS`.
181188

182189
#### s3_monitoring_configuration Arguments
183190

@@ -245,7 +252,7 @@ import {
245252
}
246253
```
247254

248-
Using `terraform import`, import EMR Severless applications using the `id`. For example:
255+
Using `terraform import`, import EMR Serverless applications using the `id`. For example:
249256

250257
```console
251258
% terraform import aws_emrserverless_application.example id

0 commit comments

Comments
 (0)