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

[Bug]: r/aws_ses_configuration_set crashes when reputation_metrics_enabled is set #38918

Closed
jeroenjonckers opened this issue Aug 19, 2024 · 5 comments · Fixed by #38921
Closed
Assignees
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ses Issues and PRs that pertain to the ses service.
Milestone

Comments

@jeroenjonckers
Copy link

Terraform Core Version

1.9.0

AWS Provider Version

5.63.0

Affected Resource(s)

  • aws_ses_configuration_set

Expected Behavior

aws_ses_configuration_set resource created without error

Actual Behavior

Request cancelled

The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.

Relevant Error/Panic Output Snippet

The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
╵

Stack trace from the terraform-provider-aws_v5.63.0_x5 plugin:

panic: interface conversion: interface {} is bool, not *bool

goroutine 72 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/ses.resourceConfigurationSetCreate({0x17c4e188, 0xc0025d98c0}, 0xc001ad9300, {0x15897560, 0xc002e18a90})
	github.com/hashicorp/terraform-provider-aws/internal/service/ses/configuration_set.go:130 +0xf2e
github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Create.interceptedHandler[...].func8(0xc001ad9300?, {0x15897560?, 0xc002e18a90})
	github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:113 +0x283
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x17c4e188?, {0x17c4e188?, 0xc0025d88d0?}, 0xd?, {0x15897560?, 0xc002e18a90?})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:801 +0x7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0043642a0, {0x17c4e188, 0xc0025d88d0}, 0xc0020db040, 0xc001ad9180, {0x15897560, 0xc002e18a90})
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:937 +0xa89
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0043db728, {0x17c4e188?, 0xc0025d8810?}, 0xc002508b40)
	github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1153 +0xd5c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ApplyResourceChange(0xc001e92e00, {0x17c4e188?, 0xc0025d8540?}, 0xc002508b40)
	github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0012560a0, {0x17c4e188?, 0xc0025bfad0?}, 0xc001b14230)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1569f860, 0xc0012560a0}, {0x17c4e188, 0xc0025bfad0}, 0xc001ad8880, 0x0)
	github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000afd200, {0x17c4e188, 0xc0025bfa40}, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0, 0xc004468b70, 0x21549d98, 0x0)
	google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc000afd200, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0)
	google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
	google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 16
	google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-aws_v5.63.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.

Terraform Configuration Files

`resource "aws_ses_configuration_set" "ses" {
name = "default-configuration-set-${var.environment}"

reputation_metrics_enabled = true
}`

Steps to Reproduce

terraform apply

Debug Output

Stack trace from the terraform-provider-aws_v5.63.0_x5 plugin:

panic: interface conversion: interface {} is bool, not *bool

goroutine 72 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/ses.resourceConfigurationSetCreate({0x17c4e188, 0xc0025d98c0}, 0xc001ad9300, {0x15897560, 0xc002e18a90})
github.com/hashicorp/terraform-provider-aws/internal/service/ses/configuration_set.go:130 +0xf2e
github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Create.interceptedHandler[...].func8(0xc001ad9300?, {0x15897560?, 0xc002e18a90})
github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:113 +0x283
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x17c4e188?, {0x17c4e188?, 0xc0025d88d0?}, 0xd?, {0x15897560?, 0xc002e18a90?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:801 +0x7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0043642a0, {0x17c4e188, 0xc0025d88d0}, 0xc0020db040, 0xc001ad9180, {0x15897560, 0xc002e18a90})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:937 +0xa89
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0043db728, {0x17c4e188?, 0xc0025d8810?}, 0xc002508b40)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1153 +0xd5c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ApplyResourceChange(0xc001e92e00, {0x17c4e188?, 0xc0025d8540?}, 0xc002508b40)
github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0012560a0, {0x17c4e188?, 0xc0025bfad0?}, 0xc001b14230)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1569f860, 0xc0012560a0}, {0x17c4e188, 0xc0025bfad0}, 0xc001ad8880, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000afd200, {0x17c4e188, 0xc0025bfa40}, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0, 0xc004468b70, 0x21549d98, 0x0)
google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc000afd200, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0)
google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 16
google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-aws_v5.63.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.

Panic Output

Stack trace from the terraform-provider-aws_v5.63.0_x5 plugin:

panic: interface conversion: interface {} is bool, not *bool

goroutine 72 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/ses.resourceConfigurationSetCreate({0x17c4e188, 0xc0025d98c0}, 0xc001ad9300, {0x15897560, 0xc002e18a90})
github.com/hashicorp/terraform-provider-aws/internal/service/ses/configuration_set.go:130 +0xf2e
github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Create.interceptedHandler[...].func8(0xc001ad9300?, {0x15897560?, 0xc002e18a90})
github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:113 +0x283
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x17c4e188?, {0x17c4e188?, 0xc0025d88d0?}, 0xd?, {0x15897560?, 0xc002e18a90?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:801 +0x7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0043642a0, {0x17c4e188, 0xc0025d88d0}, 0xc0020db040, 0xc001ad9180, {0x15897560, 0xc002e18a90})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:937 +0xa89
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0043db728, {0x17c4e188?, 0xc0025d8810?}, 0xc002508b40)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1153 +0xd5c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ApplyResourceChange(0xc001e92e00, {0x17c4e188?, 0xc0025d8540?}, 0xc002508b40)
github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0012560a0, {0x17c4e188?, 0xc0025bfad0?}, 0xc001b14230)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1569f860, 0xc0012560a0}, {0x17c4e188, 0xc0025bfad0}, 0xc001ad8880, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000afd200, {0x17c4e188, 0xc0025bfa40}, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0, 0xc004468b70, 0x21549d98, 0x0)
google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc000afd200, {0x17cb93a0, 0xc001832300}, 0xc0025d17a0)
google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 16
google.golang.org/grpc@v1.63.2/server.go:1030 +0x125

Error: The terraform-provider-aws_v5.63.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.

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@jeroenjonckers jeroenjonckers added the bug Addresses a defect in current functionality. label Aug 19, 2024
@github-actions github-actions bot added crash Results from or addresses a Terraform crash or kernel panic. service/ses Issues and PRs that pertain to the ses service. labels Aug 19, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 19, 2024
@jar-b jar-b changed the title [Bug]: [Bug]: r/aws_ses_configuration_set crashes when Enabled is nil Aug 19, 2024
@jar-b jar-b added regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 19, 2024
@jar-b jar-b self-assigned this Aug 19, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 19, 2024
@jar-b
Copy link
Member

jar-b commented Aug 19, 2024

Relates #38568

@jar-b jar-b changed the title [Bug]: r/aws_ses_configuration_set crashes when Enabled is nil [Bug]: r/aws_ses_configuration_set crashes when reputation_metrics_enabled is set Aug 19, 2024
Copy link

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.64.0 milestone Aug 19, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Aug 20, 2024
Copy link

This functionality has been released in v5.63.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/ses Issues and PRs that pertain to the ses service.
Projects
None yet
2 participants