Open Xyders opened 2 months ago
The source code for this resource used is as follow:
resource "dome9_attach_iam_safe" "self" { count = var.connect_iam_safety == true ? 1 : 0 aws_cloud_account_id = dome9_cloudaccount_aws.my_test_dome9.id aws_group_arn = aws_iam_group.CloudGuard-Restricted-Group[count.index].arn aws_policy_arn = aws_iam_policy.CloudGuard-Restricted-Policy[count.index].arn depends_on = [ aws_iam_group_policy_attachment.this, dome9_cloudaccount_aws.my_test_dome9, aws_iam_role_policy_attachment.this ] }
The error messages are like this:
dome9_attach_iam_safe.self[0]: Still creating... [3m40s elapsed] dome9_attach_iam_safe.self[0]: Still creating... [3m50s elapsed] ╷ │ Error: Request cancelled │ │ with dome9_attach_iam_safe.self[0], │ on dome9-iamsafety.tf line 243, in resource "dome9_attach_iam_safe" "self": │ 243: resource "dome9_attach_iam_safe" "self" { │ │ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled. ╵ Stack trace from the terraform-provider-dome9_v1.35.8 plugin: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xca2aee] goroutine 59 [running]: github.com/dome9/dome9-sdk-go/dome9/client.(*Client).NewRequestDoRetryWithOptions(0x0?, {0xf046e4, 0x3}, {0xc00084c468, 0x16}, {0x0, 0x0}, {0xe3e660, 0xc00025fd00}, {0xd81c00, ...}, ...) github.com/dome9/dome9-sdk-go@v1.23.7/dome9/client/client.go:52 +0x16e github.com/dome9/dome9-sdk-go/dome9/client.(*Client).NewRequestDoRetry(0x2?, {0xf046e4?, 0x505dea?}, {0xc00084c468?, 0x126?}, {0x0?, 0x0?}, {0xe3e660?, 0xc00025fd00?}, {0xd81c00, ...}, ...) github.com/dome9/dome9-sdk-go@v1.23.7/dome9/client/client.go:74 +0x93 github.com/dome9/dome9-sdk-go/services/cloudaccounts/aws.(*Service).AttachIAMSafeToCloudAccount(0xc0001608c8, {{0xc000118ae0, 0x24}, {{0xc00014e840, 0x51}, {0xc00014e8a0, 0x53}, {0x0, 0x0}}}) github.com/dome9/dome9-sdk-go@v1.23.7/services/cloudaccounts/aws/aws.go:250 +0x193 github.com/terraform-providers/terraform-provider-dome9/dome9.resourceAttachIAMSafeCreate(0xdf6740?, {0xd87980?, 0xc0001608c0}) github.com/terraform-providers/terraform-provider-dome9/dome9/resource_dome9_attach_iam_safe.go:51 +0x1be github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000000f00, 0xc0007eeaf0, 0xc0008e0560, {0xd87980, 0xc0001608c0}) github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/resource.go:320 +0x438 github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc0000e2600, 0xc0008599b0, 0xf103ad?, 0xf?) github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/provider.go:294 +0x70 github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc000012168, {0xc0005dc620?, 0x4bb106?}, 0xc0005dc620) github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/helper/plugin/grpc_provider.go:895 +0x805 github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xed5f40?, 0xc000012168}, {0x1109df0, 0xc0001a7cb0}, 0xc000300960, 0x0) github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/tfplugin5.pb.go:3305 +0x170 google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003f4380, {0x110e380, 0xc00018ca80}, 0xc000290500, 0xc000642d50, 0x16d0e80, 0x0) google.golang.org/grpc@v1.32.0/server.go:1194 +0xcab google.golang.org/grpc.(*Server).handleStream(0xc0003f4380, {0x110e380, 0xc00018ca80}, 0xc000290500, 0x0) google.golang.org/grpc@v1.32.0/server.go:1517 +0xa2f google.golang.org/grpc.(*Server).serveStreams.func1.2() google.golang.org/grpc@v1.32.0/server.go:859 +0x98 created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/grpc@v1.32.0/server.go:857 +0x28a Error: The terraform-provider-dome9_v1.35.8 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.
The source code for this resource used is as follow:
The error messages are like this: