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

tests/provider: DB Instance InvalidParameterValue (GovCloud) #15770

Closed
YakDriver opened this issue Oct 21, 2020 · 1 comment · Fixed by #15733
Closed

tests/provider: DB Instance InvalidParameterValue (GovCloud) #15770

YakDriver opened this issue Oct 21, 2020 · 1 comment · Fixed by #15733
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@YakDriver
Copy link
Member

YakDriver commented Oct 21, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

This test fails on GovCloud:

TestAccAWSDBOptionGroup_OracleOptionsUpdate

With this error: Error modifying DB Option Group: InvalidParameterValue: Version 12.1.0.4.v1 is invalid for OEM_AGENT option. Valid versions are 13.2.0.0.v1,13.2.0.0.v2,13.2.0.0.v3,13.3.0.0.v1,13.3.0.0.v2.

New or Affected Resource(s)

  • aws_db_option_group

Terraform Configuration Files

Initial config:

resource "aws_db_option_group" "bar" {
  name                     = "yakdriver"
  option_group_description = "Test option group for terraform issue 748"
  engine_name              = "oracle-ee"
  major_engine_version     = "12.1"

  option {
    option_name = "OEM_AGENT"
    port        = "3872"
    version     = "12.1.0.4.v1"

    vpc_security_group_memberships = [aws_security_group.foo.id]

    option_settings {
      name  = "OMS_PORT"
      value = "4903"
    }

    option_settings {
      name  = "OMS_HOST"
      value = "oem.host.value"
    }

    option_settings {
      name  = "AGENT_REGISTRATION_PASSWORD"
      value = "password"
    }
  }
}

Second config:

resource "aws_db_option_group" "bar" {
  name                     = "yakdriver"
  option_group_description = "Test option group for terraform issue 748"
  engine_name              = "oracle-ee"
  major_engine_version     = "12.1"

  option {
    option_name = "OEM_AGENT"
    port        = "3872"
    version     = "12.1.0.5.v1"

    vpc_security_group_memberships = [aws_security_group.foo.id]

    option_settings {
      name  = "OMS_PORT"
      value = "4903"
    }

    option_settings {
      name  = "OMS_HOST"
      value = "oem.host.value"
    }

    option_settings {
      name  = "AGENT_REGISTRATION_PASSWORD"
      value = "password"
    }
  }
}

Debug Output

TestAccAWSDBOptionGroup_OracleOptionsUpdate: resource_aws_db_option_group_test.go:357: Step 1/3 error: Error
running apply: 2020/10/20 19:43:54 [DEBUG] Using modified User-Agent: Terraform/0.12.29
HashiCorp-terraform-exec/0.10.0
        
        Error: Error modifying DB Option Group: InvalidParameterValue: Version 12.1.0.4.v1 is invalid for
OEM_AGENT option. Valid versions are 13.2.0.0.v1,13.2.0.0.v2,13.2.0.0.v3,13.3.0.0.v1,13.3.0.0.v2
        	status code: 400, request id: 1971537f-ae82-4a66-b8c2-2d32ab4dd153

--- FAIL: TestAccAWSDBOptionGroup_OracleOptionsUpdate (5.12s)

References

@YakDriver YakDriver added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. partition/aws-us-gov Pertains to the aws-us-gov partition. labels Oct 21, 2020
@ghost ghost added service/ram Issues and PRs that pertain to the ram service. service/rds Issues and PRs that pertain to the rds service. labels Oct 21, 2020
@YakDriver YakDriver removed the service/ram Issues and PRs that pertain to the ram service. label Oct 21, 2020
@ghost
Copy link

ghost commented Nov 27, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant