terraform latest AWS provider plugin crashing while creating AWS appflow
Terraform will perform the following actions:
module.appflow.aws_appflow_flow.example will be created
- resource “aws_appflow_flow” “example” {
-
arn = (known after apply)
-
description = “S3toSF”
-
id = (known after apply)
-
kms_arn = (known after apply)
-
name = “S3toSF”
-
tags_all = (known after apply)
-
destination_flow_config {
-
connector_profile_name = “s3sfnew”
-
connector_type = “Salesforce”
-
destination_connector_properties {
- salesforce {
-
id_field_names = [
- “Name”,
]
- “Name”,
-
object = “orders__c”
-
write_operation_type = “UPSERT”
-
error_handling_config {
- bucket_name = “mskdestination-s3”
- bucket_prefix = “topics/orders/partition=0/”
- fail_on_first_destination_error = false
}
}
}
}
-
- salesforce {
-
-
source_flow_config {
-
connector_type = “S3”
-
source_connector_properties {
- s3 {
-
bucket_name = “mskdestination-s3”
-
bucket_prefix = “topics/orders/partition=0/”
-
s3_input_format_config {
- s3_input_file_type = “JSON”
}
}
}
}
- s3_input_file_type = “JSON”
-
- s3 {
-
-
task {
-
destination_field = “Name”
-
source_fields = [
- “orderid”,
]
- “orderid”,
-
task_properties = {
- “DESTINATION_DATA_TYPE” = “string”
- “SOURCE_DATA_TYPE” = “string”
}
-
task_type = “Map”
-
connector_operator {
- s3 = “NO_OP”
}
}
- s3 = “NO_OP”
-
-
task {
-
destination_field = “address__c”
-
source_fields = [
- “address_state”,
]
- “address_state”,
-
task_properties = {
- “DESTINATION_DATA_TYPE” = “textarea”
- “SOURCE_DATA_TYPE” = “string”
}
-
task_type = “Map”
-
connector_operator {
- s3 = “NO_OP”
}
}
- s3 = “NO_OP”
-
-
task {
-
destination_field = “itemId__c”
-
source_fields = [
- “itemid”,
]
- “itemid”,
-
task_properties = {
- “DESTINATION_DATA_TYPE” = “string”
- “SOURCE_DATA_TYPE” = “string”
}
-
task_type = “Map”
-
connector_operator {
- s3 = “NO_OP”
}
}
- s3 = “NO_OP”
-
-
task {
-
destination_field = “orderunits__c”
-
source_fields = [
- “orderunits”,
]
- “orderunits”,
-
task_properties = {
- “DESTINATION_DATA_TYPE” = “double”
- “SOURCE_DATA_TYPE” = “string”
}
-
task_type = “Map”
-
connector_operator {
- s3 = “NO_OP”
}
}
- s3 = “NO_OP”
-
-
task {
-
source_fields = [
- “itemid”,
- “orderunits”,
- “address_state”,
- “orderid”,
]
-
task_type = “Filter”
-
connector_operator {
- s3 = “PROJECTION”
}
}
- s3 = “PROJECTION”
-
-
trigger_config {
-
trigger_type = “OnDemand”
-
trigger_properties {
}
}
}
-
-
Plan: 1 to add, 0 to change, 0 to destroy.
module.appflow.aws_appflow_flow.example: Creating…
╷
│ Warning: Deprecated Resource
│
│ with module.msk.data.aws_subnet_ids.private,
│ on msk/main.tf line 7, in data “aws_subnet_ids” “private”:
│ 7: data “aws_subnet_ids” “private” {
│
│ The aws_subnet_ids data source has been deprecated and will be removed in a future version. Use the aws_subnets data source instead.
│
│ (and one more similar warning elsewhere)
╵
╷
│ Warning: Argument is deprecated
│
│ with module.msk.aws_msk_cluster.example,
│ on msk/main.tf line 76, in resource “aws_msk_cluster” “example”:
│ 76: ebs_volume_size = 10
│
│ use ‘storage_info’ argument instead
╵
╷
│ Error: Plugin did not respond
│
│ with module.appflow.aws_appflow_flow.example,
│ on appflow/main.tf line 2, in resource “aws_appflow_flow” “example”:
│ 2: resource “aws_appflow_flow” “example” {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more
│ details.
╵
Stack trace from the terraform-provider-aws_v4.29.0_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 349 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/appflow.expandTriggerConfig(0xc002d503f0)
github.com/hashicorp/terraform-provider-aws/internal/service/appflow/flow.go:2426 +0x197
github.com/hashicorp/terraform-provider-aws/internal/service/appflow.resourceFlowCreate({0xaec6360, 0xc00565a120}, 0x0?, {0x8b8ca00?, 0xc001641500})
github.com/hashicorp/terraform-provider-aws/internal/service/appflow/flow.go:1215 +0x251
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xaec6360?, {0xaec6360?, 0xc00565a120?}, 0xd?, {0x8b8ca00?, 0xc001641500?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.21.0/helper/schema/resource.go:702 +0x84
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000a070a0, {0xaec6360, 0xc00565a120}, 0xc000821e10, 0xc002ccba80, {0x8b8ca00, 0xc001641500})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.21.0/helper/schema/resource.go:837 +0xa7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00000c600, {0xaec6360?, 0xc00565a000?}, 0xc004155a90)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.21.0/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc000b89d70, 0xc000b89dd0, {0xc0031b1f40, 0x2, 0x2}, 0xc000b89da0, 0xc00090fab0, 0xc002d9e960, 0xc000b89e00}, {0xaec6360, …}, …)
github.com/hashicorp/terraform-plugin-mux@v0.7.0/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x142
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc001a36a00, {0xaec6360?, 0xc004209590?}, 0xc003ff12d0)
github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x9dfd280?, 0xc001a36a00}, {0xaec6360, 0xc004209590}, 0xc003ff1260, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc002bda000, {0xaecba78, 0xc002e4d6c0}, 0xc00421fd40, 0xc001c33860, 0x1059e9e0, 0x0)
google.golang.org/grpc@v1.48.0/server.go:1295 +0xb0b
google.golang.org/grpc.(*Server).handleStream(0xc002bda000, {0xaecba78, 0xc002e4d6c0}, 0xc00421fd40, 0x0)
google.golang.org/grpc@v1.48.0/server.go:1636 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.48.0/server.go:932 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.48.0/server.go:930 +0x28a
Error: The terraform-provider-aws_v4.29.0_x5 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin’s maintainers so that it
can be fixed. The output above should help diagnose the issue.