hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.8k stars 9.15k forks source link

Fix sweepers #37884

Closed ewbankkit closed 4 months ago

ewbankkit commented 4 months ago
2024/06/07 09:42:28 [DEBUG] Running Sweeper (aws_devicefarm_test_grid_project) in region (us-east-2)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x1109edda4]

goroutine 1 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/devicefarm.sweepTestGridProjects({0x16bae71fb, 0x9})
    /Users/kewbank/src/github.com/hashicorp/terraform-provider-aws/internal/service/devicefarm/sweep.go:106 +0x1f4
github.com/hashicorp/terraform-plugin-testing/helper/resource.runSweeperWithRegion({0x16bae71fb, 0x9}, 0x140009d8c30, 0x14000287800, 0x14000da0030, 0x0)
    /Users/kewbank/go/pkg/mod/github.com/hashicorp/terraform-plugin-testing@v1.8.0/helper/resource/testing.go:273 +0x42c
github.com/hashicorp/terraform-plugin-testing/helper/resource.runSweepers({0x1400056d850, 0x1, 0x14000287800?}, 0x14000287800, 0x0)
    /Users/kewbank/go/pkg/mod/github.com/hashicorp/terraform-plugin-testing@v1.8.0/helper/resource/testing.go:151 +0x42c
github.com/hashicorp/terraform-plugin-testing/helper/resource.TestMain({0x1178ded78, 0x1400039be00})
    /Users/kewbank/go/pkg/mod/github.com/hashicorp/terraform-plugin-testing@v1.8.0/helper/resource/testing.go:129 +0xf4
github.com/hashicorp/terraform-provider-aws/internal/sweep_test.TestMain(0x1400039be00)
    /Users/kewbank/src/github.com/hashicorp/terraform-provider-aws/internal/sweep/sweep_test.go:21 +0x7c
main.main()
    _testmain.go:49 +0x170
FAIL    github.com/hashicorp/terraform-provider-aws/internal/sweep  47.153s
FAIL
make: *** [sweep] Error 1

Relates https://github.com/hashicorp/terraform-provider-aws/pull/37196.

2024/06/07 10:07:19 [ERROR] Error running Sweeper (aws_lightsail_distribution) in region (us-east-2): retrieving Lightsail Distributions (us-east-2): operation error Lightsail: GetDistributions, https response error StatusCode: 400, RequestID: 8d490269-a048-49ce-8d6f-56326ef9410f, InvalidInputException: Distribution-related APIs are only available in the us-east-1 Region. Please set your Region configuration to us-east-1 to create, view, or edit distribution resources.
FAIL    github.com/hashicorp/terraform-provider-aws/internal/sweep  87.262s
FAIL
make: *** [sweep] Error 1
2024/06/07 10:14:49 [ERROR] Error running Sweeper (aws_lightsail_domain) in region (us-east-2): retrieving Lightsail Domain (us-east-2): operation error Lightsail: GetDomains, https response error StatusCode: 400, RequestID: 2a4edc9b-f179-4373-b078-cc59028dac04, InvalidInputException: Domain-related APIs are only available in the us-east-1 Region. Please set your Region configuration to us-east-1 to create, view, or edit domain resources.
FAIL    github.com/hashicorp/terraform-provider-aws/internal/sweep  49.051s
FAIL
make: *** [sweep] Error 1

Relates https://github.com/hashicorp/terraform-provider-aws/pull/37762.

2024/06/07 11:03:02 [ERROR] Error running Sweeper (aws_schemas_registry) in region (us-gov-west-1): 1 error occurred:
    * listing EventBridge Schemas Schemas (us-gov-west-1): TooManyRequestsException: Too Many Requests
{
  RespMetadata: {
    StatusCode: 429,
    RequestID: "02e82974-8580-4205-b9a3-49829944f8a1"
  },
  Code_: "Throttled",
  Message_: "Too Many Requests"
}

FAIL    github.com/hashicorp/terraform-provider-aws/internal/sweep  48.883s
FAIL
make: *** [sweep] Error 1
2024/06/07 11:14:20 [ERROR] Error running Sweeper (aws_schemas_discoverer) in region (us-gov-east-1): 1 error occurred:
    * listing EventBridge Schemas Discoverers: TooManyRequestsException: Too Many Requests
{
  RespMetadata: {
    StatusCode: 429,
    RequestID: "b795c726-f28e-4e89-98a5-411438aacbe4"
  },
  Code_: "Throttled",
  Message_: "Too Many Requests"
}

FAIL    github.com/hashicorp/terraform-provider-aws/internal/sweep  96.190s
FAIL
make: *** [sweep] Error 1
github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 4 months ago

[!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[bot] commented 4 months ago

This functionality has been released in v5.54.0 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!

github-actions[bot] commented 3 months ago

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.