Skip to content

Commit 0848175

Browse files
authored
Fix runtime configuration for EMR Serverless
Error: Unsupported attribute β”‚ β”‚ on ../terraform-aws-emr/modules/serverless/main.tf line 170, in resource "aws_emrserverless_application" "this": β”‚ 170: classification = runtime_configuration.value.classification β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ runtime_configuration.value is list of object with 1 element β”‚ β”‚ Can't access attributes on a list of objects. Did you mean to access attribute "classification" for a specific element of the list, or across all elements of the list? β•΅ β•· β”‚ Error: Unsupported attribute β”‚ β”‚ on ../terraform-aws-emr/modules/serverless/main.tf line 171, in resource "aws_emrserverless_application" "this": β”‚ 171: properties = runtime_configuration.value.properties β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ runtime_configuration.value is list of object with 1 element β”‚ β”‚ Can't access attributes on a list of objects. Did you mean to access attribute "properties" for a specific element of the list, or across all elements of the list? β•΅
1 parent f7d37e7 commit 0848175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žmodules/serverless/main.tfβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ resource "aws_emrserverless_application" "this" {
164164
}
165165

166166
dynamic "runtime_configuration" {
167-
for_each = var.runtime_configuration != null ? [var.runtime_configuration] : []
167+
for_each = var.runtime_configuration != null ? var.runtime_configuration : []
168168

169169
content {
170170
classification = runtime_configuration.value.classification

0 commit comments

Comments
Β (0)