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

Remove underscores from RDS parameter group name validation #3396

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Feb 15, 2018

This reverts the errant change in #1460. Found via #3395

CreateDBParameterGroup API documentation:

DBParameterGroupName
The name of the DB parameter group.
Constraints:
Must be 1 to 255 letters, numbers, or hyphens.
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens

CreateDBClusterParameterGroup API documentation:

DBClusterParameterGroupName
The name of the DB cluster parameter group.
Constraints:
Must match the name of an existing DBClusterParameterGroup.

@bflad bflad added bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service. labels Feb 15, 2018
@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Feb 15, 2018
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really odd.

The only explanation which comes to my mind is that RDS has different validation per region. This has been the case for S3 buckets for a long time.

Can you try creating RDS parameter group in us-west-2 with underscores and verify, please? The docs may not always tell the truth from my past experience, so I'd like us to be sure. 😉

@bflad
Copy link
Contributor Author

bflad commented Feb 15, 2018

@radeksimko

for REGION in $(aws ec2 describe-regions | jq -r '.Regions[] | .RegionName' | sort); do echo "Testing: $REGION"; aws --region $REGION rds create-db-parameter-group --db-parameter-group-name underscore_db_parameter_group_name --db-parameter-group-family aurora5.6 --description bflad-testing; done
Testing: ap-northeast-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: ap-northeast-2

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: ap-south-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: ap-southeast-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: ap-southeast-2

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: ca-central-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: eu-central-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: eu-west-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: eu-west-2

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: eu-west-3

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: sa-east-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: ParameterGroupFamily aurora5.6 is not a valid parameter group family
Testing: us-east-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: us-east-2

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: us-west-1

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
Testing: us-west-2

An error occurred (InvalidParameterValue) when calling the CreateDBParameterGroup operation: The parameter DBParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the verification @bflad 👍

LGTM.

@bflad bflad merged commit 78bf4ec into master Feb 16, 2018
@bflad bflad deleted the b-fix-rds-parameter-group-name-validation branch February 16, 2018 15:28
bflad added a commit that referenced this pull request Feb 16, 2018
@bflad
Copy link
Contributor Author

bflad commented Feb 27, 2018

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

@bflad bflad added this to the v1.10.0 milestone Feb 27, 2018
@ghost
Copy link

ghost commented Apr 7, 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 7, 2020
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. service/rds Issues and PRs that pertain to the rds service. size/L Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants