-
Notifications
You must be signed in to change notification settings - Fork 4k
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
docs(rds): invalid master username #5076
Conversation
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@@ -25,7 +25,7 @@ your instances will be launched privately or publicly: | |||
const cluster = new DatabaseCluster(this, 'Database', { | |||
engine: DatabaseClusterEngine.AURORA, | |||
masterUser: { | |||
username: 'admin' | |||
username: 'clusteradmin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a validation that will help people avoid this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this. According to the docs, the master username blacklist varies by database engine: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html
To properly validate, the CDK would have to be aware of all reserved words for all available engines. The list of reserved words might be quite large.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fair enough. Perhaps we can add this link to the docs of username
and recommend that users look at that?
@@ -25,7 +25,7 @@ your instances will be launched privately or publicly: | |||
const cluster = new DatabaseCluster(this, 'Database', { | |||
engine: DatabaseClusterEngine.AURORA, | |||
masterUser: { | |||
username: 'admin' | |||
username: 'clusteradmin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fair enough. Perhaps we can add this link to the docs of username
and recommend that users look at that?
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
5 similar comments
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Commit Message
docs(rds): invalid master username (#5076)
End Commit Message
Fixes the following error that occurs when
username
is set toadmin
: