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.75k stars 9.11k forks source link

[Bug]: resource/aws_rds_cluster: Acceptance tests for fail #30131

Closed AdamTylerLynch closed 1 year ago

AdamTylerLynch commented 1 year ago

Terraform Core Version

1.4.2

AWS Provider Version

2.59.0

Affected Resource(s)

Failing tests:

Expected Behavior

All tests pass

Actual Behavior

Failing tests:

Relevant Error/Panic Output Snippet

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rds/... -v -count 1 -parallel 10 -run='TestAccRDSCluster_'  -timeout 180m
--- SKIP: TestAccRDSCluster_SnapshotIdentifierEngineMode_serverless (0.00s)
=== CONT  TestAccRDSCluster_port
2023-03-17T21:32:42.445Z [ERROR] sdk.proto: Response contains error diagnostic: diagnostic_detail="" diagnostic_severity=ERROR
  diagnostic_summary=
  | creating RDS Cluster (tf-acc-test-5585831697775317023): InvalidParameterCombination: The Parameter Group default.aurora-postgresql13 with DBParameterGroupFamily aurora-postgresql13 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql14
  | \tstatus code: 400, request id: 882516ee-107d-49be-8489-6a42870a11f3
   tf_resource_type=aws_rds_cluster tf_req_id=c39cb293-655a-6252-f6bc-6e884615491a tf_provider_addr=registry.terraform.io/hashicorp/aws tf_proto_version=5.3 tf_rpc=ApplyResourceChange
2023-03-17T21:32:42.460Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_terraform_path=/tmp/plugintest-terraform3285922201/terraform test_name=TestAccRDSCluster_port test_working_directory=/tmp/plugintest2055358496 test_step_number=1
  error=
  | exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-5585831697775317023): InvalidParameterCombination: The Parameter Group default.aurora-postgresql13 with DBParameterGroupFamily aurora-postgresql13 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql14
  | \tstatus code: 400, request id: 882516ee-107d-49be-8489-6a42870a11f3
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
  |    2: resource "aws_rds_cluster" "test" {
  | 

2023-03-17T21:32:42.460Z [ERROR] sdk.helper_resource: Unexpected error: test_terraform_path=/tmp/plugintest-terraform3285922201/terraform test_name=TestAccRDSCluster_port test_working_directory=/tmp/plugintest2055358496 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-5585831697775317023): InvalidParameterCombination: The Parameter Group default.aurora-postgresql13 with DBParameterGroupFamily aurora-postgresql13 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql14
  | \tstatus code: 400, request id: 882516ee-107d-49be-8489-6a42870a11f3
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
  |    2: resource "aws_rds_cluster" "test" {
  | 

    cluster_test.go:1471: Step 1/2 error: Error running apply: exit status 1

        Error: creating RDS Cluster (tf-acc-test-5585831697775317023): InvalidParameterCombination: The Parameter Group default.aurora-postgresql13 with DBParameterGroupFamily aurora-postgresql13 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql14
            status code: 400, request id: 882516ee-107d-49be-8489-6a42870a11f3

          with aws_rds_cluster.test,
          on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
           2: resource "aws_rds_cluster" "test" {

--- FAIL: TestAccRDSCluster_port (8.70s)
2023-03-17T21:33:49.699Z [ERROR] sdk.proto: Response contains error diagnostic: tf_proto_version=5.3 tf_rpc=ApplyResourceChange tf_req_id=30c775c6-f219-7637-dee1-8b52ae32ca74 tf_resource_type=aws_rds_cluster
  diagnostic_summary=
  | creating RDS Cluster (tf-acc-test-4673249278313450462): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 7db52e90-b287-47c1-86c6-b5929b1cd325
   diagnostic_detail="" diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/hashicorp/aws
2023-03-17T21:33:49.719Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_terraform_path=/tmp/plugintest-terraform2438171316/terraform test_working_directory=/tmp/plugintest3294550922 test_step_number=1 test_name=TestAccRDSCluster_EngineMode_parallelQuery
  error=
  | exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-4673249278313450462): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 7db52e90-b287-47c1-86c6-b5929b1cd325
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
  |    2: resource "aws_rds_cluster" "test" {
  | 

2023-03-17T21:33:49.720Z [ERROR] sdk.helper_resource: Unexpected error: test_name=TestAccRDSCluster_EngineMode_parallelQuery test_terraform_path=/tmp/plugintest-terraform2438171316/terraform test_working_directory=/tmp/plugintest3294550922 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-4673249278313450462): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 7db52e90-b287-47c1-86c6-b5929b1cd325
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
  |    2: resource "aws_rds_cluster" "test" {
  | 

    cluster_test.go:1125: Step 1/1 error: Error running apply: exit status 1

        Error: creating RDS Cluster (tf-acc-test-4673249278313450462): InvalidParameterCombination: Cannot find version null for aurora
            status code: 400, request id: 7db52e90-b287-47c1-86c6-b5929b1cd325

          with aws_rds_cluster.test,
          on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "test":
           2: resource "aws_rds_cluster" "test" {

2023-03-17T21:33:50.276Z [ERROR] sdk.proto: Response contains error diagnostic: tf_resource_type=aws_rds_global_cluster tf_req_id=e89dde15-889b-ebea-717f-d848952b737d tf_provider_addr=registry.terraform.io/hashicorp/aws tf_proto_version=5.3 diagnostic_detail="" diagnostic_severity=ERROR
  diagnostic_summary=
  | creating RDS Global Cluster: InvalidParameterValue: The requested engine version was not found or does not support global functionality
  | \tstatus code: 400, request id: a4d69a86-7831-41fc-91da-da4416b2db5a
   tf_rpc=ApplyResourceChange
--- FAIL: TestAccRDSCluster_EngineMode_parallelQuery (8.18s)
=== CONT  TestAccRDSCluster_EngineMode_multiMaster
2023-03-17T21:33:52.075Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_name=TestAccRDSCluster_GlobalClusterIdentifier_secondaryClustersWriteForwarding test_terraform_path=/tmp/plugintest-terraform3516557379/terraform test_working_directory=/tmp/plugintest3478017634 test_step_number=1
  error=
  | exit status 1
  | 
  | Error: creating RDS Global Cluster: InvalidParameterValue: The requested engine version was not found or does not support global functionality
  | \tstatus code: 400, request id: a4d69a86-7831-41fc-91da-da4416b2db5a
  | 
  |   with aws_rds_global_cluster.test,
  |   on terraform_plugin_test.tf line 18, in resource "aws_rds_global_cluster" "test":
  |   18: resource "aws_rds_global_cluster" "test" {
  | 

2023-03-17T21:33:52.075Z [ERROR] sdk.helper_resource: Unexpected error: test_name=TestAccRDSCluster_GlobalClusterIdentifier_secondaryClustersWriteForwarding test_terraform_path=/tmp/plugintest-terraform3516557379/terraform test_working_directory=/tmp/plugintest3478017634 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating RDS Global Cluster: InvalidParameterValue: The requested engine version was not found or does not support global functionality
  | \tstatus code: 400, request id: a4d69a86-7831-41fc-91da-da4416b2db5a
  | 
  |   with aws_rds_global_cluster.test,
  |   on terraform_plugin_test.tf line 18, in resource "aws_rds_global_cluster" "test":
  |   18: resource "aws_rds_global_cluster" "test" {
  | 

=== CONT  TestAccRDSCluster_GlobalClusterIdentifier_secondaryClustersWriteForwarding
    cluster_test.go:1443: Step 1/1 error: Error running apply: exit status 1

        Error: creating RDS Global Cluster: InvalidParameterValue: The requested engine version was not found or does not support global functionality
            status code: 400, request id: a4d69a86-7831-41fc-91da-da4416b2db5a

          with aws_rds_global_cluster.test,
          on terraform_plugin_test.tf line 18, in resource "aws_rds_global_cluster" "test":
          18: resource "aws_rds_global_cluster" "test" {

--- FAIL: TestAccRDSCluster_GlobalClusterIdentifier_secondaryClustersWriteForwarding (14.80s)
2023-03-17T21:34:25.072Z [ERROR] sdk.proto: Response contains error diagnostic: tf_resource_type=aws_vpc tf_proto_version=5.3 tf_rpc=ApplyResourceChange tf_req_id=60f06fb8-3c78-8da5-20a2-fc853e37dc76
  diagnostic_summary=
  | creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: 92d078e6-5081-4731-a50a-3d59b0227835
   diagnostic_detail="" diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/hashicorp/awsalternate
2023-03-17T21:37:51.632Z [ERROR] sdk.proto: Response contains error diagnostic: tf_rpc=ApplyResourceChange tf_resource_type=aws_rds_cluster tf_req_id=ca30b9e8-aafd-44e2-910a-625434a4da57 tf_provider_addr=registry.terraform.io/hashicorp/aws diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="existing RDS Clusters cannot be migrated between existing RDS Global Clusters" tf_proto_version=5.3
2023-03-17T21:37:51.650Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_terraform_path=/tmp/plugintest-terraform4060823760/terraform test_working_directory=/tmp/plugintest2178493845 test_name=TestAccRDSCluster_GlobalClusterIdentifierEngineModeGlobal_update test_step_number=2
  error=
  | exit status 1
  | 
  | Error: existing RDS Clusters cannot be migrated between existing RDS Global Clusters
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 9, in resource "aws_rds_cluster" "test":
  |    9: resource "aws_rds_cluster" "test" {
  | 

2023/03/17 21:40:21 [WARN] WaitForState timeout after 5m0s
2023/03/17 21:40:21 [WARN] WaitForState starting 30s refresh grace period
2023-03-17T21:40:21.756Z [ERROR] sdk.proto: Response contains error diagnostic: diagnostic_severity=ERROR
  diagnostic_summary=
  | updating RDS Cluster (tf-acc-test-3144158247054807767): InvalidDBClusterStateFault: Cannot modify engine version without a healthy primary instance in DB cluster: tf-acc-test-3144158247054807767
  | \tstatus code: 400, request id: 2e434d35-fe68-43e9-be54-a44312f2857d
   diagnostic_detail="" tf_req_id=4115959c-45f7-4236-d482-f3e4a946e2b3 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_proto_version=5.3 tf_rpc=ApplyResourceChange tf_resource_type=aws_rds_cluster
2023-03-17T21:40:21.770Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_terraform_path=/tmp/plugintest-terraform2090894993/terraform test_working_directory=/tmp/plugintest4031493624 test_step_number=2
  error=
  | exit status 1
  | 
  | Error: updating RDS Cluster (tf-acc-test-3144158247054807767): InvalidDBClusterStateFault: Cannot modify engine version without a healthy primary instance in DB cluster: tf-acc-test-3144158247054807767
  | \tstatus code: 400, request id: 2e434d35-fe68-43e9-be54-a44312f2857d
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 17, in resource "aws_rds_cluster" "test":
  |   17: resource "aws_rds_cluster" "test" {
  | 
   test_name=TestAccRDSCluster_engineVersion
2023-03-17T21:40:44.660Z [ERROR] sdk.proto: Response contains error diagnostic: diagnostic_summary="existing RDS Clusters cannot be added to an existing RDS Global Cluster" diagnostic_detail="" diagnostic_severity=ERROR tf_rpc=ApplyResourceChange tf_req_id=c1d9390b-79a7-f03b-03c4-54bb3e3a9937 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_proto_version=5.3 tf_resource_type=aws_rds_cluster
2023-03-17T21:40:44.676Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_name=TestAccRDSCluster_GlobalClusterIdentifierEngineModeGlobal_add test_terraform_path=/tmp/plugintest-terraform67480819/terraform test_working_directory=/tmp/plugintest2844941464 test_step_number=2
  error=
  | exit status 1
  | 
  | Error: existing RDS Clusters cannot be added to an existing RDS Global Cluster
  | 
  |   with aws_rds_cluster.test,
  |   on terraform_plugin_test.tf line 8, in resource "aws_rds_cluster" "test":
  |    8: resource "aws_rds_cluster" "test" {
  | 

2023-03-17T21:44:09.182Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_name=TestAccRDSCluster_GlobalClusterIdentifier_primarySecondaryClusters test_terraform_path=/tmp/plugintest-terraform3435527736/terraform test_working_directory=/tmp/plugintest3674546206 test_step_number=1
  error=
  | exit status 1
  | 
  | Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: 92d078e6-5081-4731-a50a-3d59b0227835
  | 
  |   with aws_vpc.alternate,
  |   on terraform_plugin_test.tf line 43, in resource "aws_vpc" "alternate":
  |   43: resource "aws_vpc" "alternate" {
  | 

2023-03-17T21:44:09.182Z [ERROR] sdk.helper_resource: Unexpected error: test_name=TestAccRDSCluster_GlobalClusterIdentifier_primarySecondaryClusters test_terraform_path=/tmp/plugintest-terraform3435527736/terraform test_working_directory=/tmp/plugintest3674546206 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: 92d078e6-5081-4731-a50a-3d59b0227835
  | 
  |   with aws_vpc.alternate,
  |   on terraform_plugin_test.tf line 43, in resource "aws_vpc" "alternate":
  |   43: resource "aws_vpc" "alternate" {
  | 

=== CONT  TestAccRDSCluster_GlobalClusterIdentifier_primarySecondaryClusters
    cluster_test.go:1370: Step 1/1 error: Error running apply: exit status 1

        Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
            status code: 400, request id: 92d078e6-5081-4731-a50a-3d59b0227835

          with aws_vpc.alternate,
          on terraform_plugin_test.tf line 43, in resource "aws_vpc" "alternate":
          43: resource "aws_vpc" "alternate" {

2023-03-17T21:47:03.646Z [ERROR] sdk.proto: Response contains error diagnostic:
  diagnostic_summary=
  | creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: a9b60cc7-ad24-47dc-b772-42d0058757c5
   diagnostic_detail="" diagnostic_severity=ERROR tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/hashicorp/awsalternate tf_req_id=7c85bcab-ebd6-27b5-6292-630b76032a98 tf_proto_version=5.3 tf_resource_type=aws_vpc
--- FAIL: TestAccRDSCluster_GlobalClusterIdentifier_primarySecondaryClusters (1288.94s)
=== CONT  TestAccRDSCluster_SnapshotIdentifierEngineMode_parallelQuery
2023-03-17T21:55:53.248Z [ERROR] sdk.proto: Response contains error diagnostic: diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/hashicorp/aws tf_proto_version=5.3 tf_rpc=ApplyResourceChange tf_resource_type=aws_rds_cluster tf_req_id=6e4bcf89-9a18-eee9-7869-99819fba22ba
  diagnostic_summary=
  | creating RDS Cluster (tf-acc-test-3715423787562322090-source): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 6bb70709-f538-44eb-bcef-874a1071a024
   diagnostic_detail=""
2023-03-17T21:55:53.263Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_terraform_path=/tmp/plugintest-terraform1880852415/terraform test_working_directory=/tmp/plugintest2262363310 test_step_number=1
  error=
  | exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-3715423787562322090-source): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 6bb70709-f538-44eb-bcef-874a1071a024
  | 
  |   with aws_rds_cluster.source,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "source":
  |    2: resource "aws_rds_cluster" "source" {
  | 
   test_name=TestAccRDSCluster_SnapshotIdentifierEngineMode_parallelQuery
2023-03-17T21:55:53.263Z [ERROR] sdk.helper_resource: Unexpected error: test_working_directory=/tmp/plugintest2262363310 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating RDS Cluster (tf-acc-test-3715423787562322090-source): InvalidParameterCombination: Cannot find version null for aurora
  | \tstatus code: 400, request id: 6bb70709-f538-44eb-bcef-874a1071a024
  | 
  |   with aws_rds_cluster.source,
  |   on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "source":
  |    2: resource "aws_rds_cluster" "source" {
  | 
   test_name=TestAccRDSCluster_SnapshotIdentifierEngineMode_parallelQuery test_terraform_path=/tmp/plugintest-terraform1880852415/terraform
    cluster_test.go:1698: Step 1/1 error: Error running apply: exit status 1

        Error: creating RDS Cluster (tf-acc-test-3715423787562322090-source): InvalidParameterCombination: Cannot find version null for aurora
            status code: 400, request id: 6bb70709-f538-44eb-bcef-874a1071a024

          with aws_rds_cluster.source,
          on terraform_plugin_test.tf line 2, in resource "aws_rds_cluster" "source":
           2: resource "aws_rds_cluster" "source" {

--- FAIL: TestAccRDSCluster_SnapshotIdentifierEngineMode_parallelQuery (7.76s)
2023-03-17T21:58:18.040Z [WARN]  sdk.helper_resource: Error running Terraform CLI command: test_working_directory=/tmp/plugintest3092884090 test_step_number=1 test_terraform_path=/tmp/plugintest-terraform923085306/terraform test_name=TestAccRDSCluster_ReplicationSourceIdentifier_kmsKeyID
  error=
  | exit status 1
  | 
  | Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: a9b60cc7-ad24-47dc-b772-42d0058757c5
  | 
  |   with aws_vpc.test,
  |   on terraform_plugin_test.tf line 73, in resource "aws_vpc" "test":
  |   73: resource "aws_vpc" "test" {
  | 

2023-03-17T21:58:18.041Z [ERROR] sdk.helper_resource: Unexpected error: test_terraform_path=/tmp/plugintest-terraform923085306/terraform test_name=TestAccRDSCluster_ReplicationSourceIdentifier_kmsKeyID test_working_directory=/tmp/plugintest3092884090 test_step_number=1
  error=
  | Error running apply: exit status 1
  | 
  | Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
  | \tstatus code: 400, request id: a9b60cc7-ad24-47dc-b772-42d0058757c5
  | 
  |   with aws_vpc.test,
  |   on terraform_plugin_test.tf line 73, in resource "aws_vpc" "test":
  |   73: resource "aws_vpc" "test" {
  | 

=== CONT  TestAccRDSCluster_ReplicationSourceIdentifier_kmsKeyID
    cluster_test.go:917: Step 1/1 error: Error running apply: exit status 1

        Error: creating EC2 VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
            status code: 400, request id: a9b60cc7-ad24-47dc-b772-42d0058757c5

          with aws_vpc.test,
          on terraform_plugin_test.tf line 73, in resource "aws_vpc" "test":
          73: resource "aws_vpc" "test" {

--- FAIL: TestAccRDSCluster_ReplicationSourceIdentifier_kmsKeyID (1346.51s)
FAIL
FAIL    github.com/hashicorp/terraform-provider-aws/internal/service/rds    5239.008s
FAIL
make: *** [testacc] Error 1

Terraform Configuration Files

resource AccTests

Steps to Reproduce

nohup make testacc PKG=rds TESTS=TestAccRDSCluster_ >&1 | tee ~/tfacctest_TestAccRDSCluster.txt

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 year ago

This functionality has been released in v5.13.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 1 year 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.