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

AWS RDS DB option groups failed with error InvalidParameterCombination: OEM_AGENT option requires a version number. #3841

Closed
sriharsha29 opened this issue Mar 20, 2018 · 5 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@sriharsha29
Copy link

sriharsha29 commented Mar 20, 2018

Hi while creating db option group got the following error with version field.

with version field
Error: Error applying plan:
1 error(s) occurred:

  • aws_db_option_group.test: 1 error(s) occurred:
  • aws_db_option_group.test: Error modifying DB Option Group: InvalidParameterValue: We do not support setting: version for OEM_AGENT

without version field
aws_db_option_group.test: Error modifying DB Option Group: InvalidParameterCombination: OEM_AGENT option requires a version number. Valid versions are 12.1.0.4.v1,12.1.0.5.v1,13.1.0.0.v1,13.2.0.0.v1,13.2.0.0.v2

Snippet

{
    "resource": {
        "aws_db_option_group": {
            "test": {
                "engine_name": "oracle-ee",
                "major_engine_version": "12.1",
                "name": "option-group",
                "option": [
                    {
                        "option_name": "OEM_AGENT",
                        "option_settings": [
                         {
                         "name": "OMS_HOST",
                         "value": "xxx"
                        },
                        {
                         "name": "OMS_PORT",
                         "value": "xxx"
                        },
                        {
                         "name": "AGENT_REGISTRATION_PASSWORD",
                         "value": "xxxx"
                        },
                        {
                            "name": "version",
                            "value":"12.1.0.4.v1"
                        }
                       
                    ],
                        "port": "xxxx",
                        "vpc_security_group_memberships": ["sg-xxxx","sg-xxxxx"]
                   
                    }
                
                ],

                "option_group_description": "Option Group"
            }
        }
    }
}

Terraform Version :
Terraform v0.11.4

  • provider.aws v1.11.0

resource:

  • aws_db_option_group
@bflad
Copy link
Contributor

bflad commented Mar 20, 2018

Hi @sriharsha29 👋 Sorry you're running into trouble here. It seems both those errors are being returned from the AWS RDS API. I'm not directly familiar with the Oracle Enterprise Manager configuration for RDS, but maybe its looking for the version to be set via AGENT_VERSION and not version?

                        {
                            "name": "AGENT_VERSION",
                            "value": "12.1.0.4.v1"
                        }

Reference: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Oracle.Options.OEMAgent.html#Oracle.Options.OEMAgent.Options

@bflad bflad added question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/rds Issues and PRs that pertain to the rds service. waiting-response Maintainers are waiting on response from community or contributor. labels Mar 20, 2018
@sriharsha29
Copy link
Author

:( not works
error: Error applying plan:

1 error(s) occurred:

  • aws_db_option_group.test: 1 error(s) occurred:

  • aws_db_option_group.test: Error modifying DB Option Group: InvalidParameterValue: We do not support setting: AGENT_VERSION for OEM_AGENT
    status code: 400,
    and got some other issues this time with vpc_security_group_memberships : ["sg-xx","sg-xx"]
    1 error(s) occurred:

  • aws_db_option_group.test: 1 error(s) occurred:

  • aws_db_option_group.test: Error modifying DB Option Group: InvalidParameterValue: Invalid security group , groupId= sg-xxxxxx,sg-xxxxxxxx, groupName=.
    status code: 400

@bflad bflad removed the waiting-response Maintainers are waiting on response from community or contributor. label Mar 20, 2018
@sriharsha29
Copy link
Author

In RDS option group for oem_agent required an OptionVersion look like the key is missing in terraform as of I know it is not option settings it should be an option.

@sriharsha29 sriharsha29 reopened this Mar 26, 2018
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed enhancement Requests to existing resources that expand the functionality or scope. question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. labels Apr 10, 2018
@bflad bflad added this to the v1.15.0 milestone Apr 12, 2018
@bflad
Copy link
Contributor

bflad commented Apr 12, 2018

Support for option version configuration has been merged into master (via #2590) and will release with v1.15.0 of the AWS provider, likely mid next week. 🎉

@bflad bflad closed this as completed Apr 12, 2018
@ghost
Copy link

ghost commented Apr 6, 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 and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

No branches or pull requests

2 participants