rds proxy code doesn't work with mysql8
See original GitHub issueyou have to update cdk in order to specify the mysql version
const rdsInstance = new rds.DatabaseInstance(this, 'DBInstance', {
engine: rds.DatabaseInstanceEngine.mysql({
version: rds.MysqlEngineVersion.VER_5_7_30
}),
also the secret has changed to secrets andis now an array:
// Create an RDS Proxy
const proxy = rdsInstance.addProxy(id+'-proxy', {
secrets: [databaseCredentialsSecret],
debugLogging: true,
vpc,
securityGroups: [dbConnectionGroup]
});
also you need to specify the region in the bin/the-rds-proxy.ts
new TheRdsProxyStack(app, 'TheRdsProxyStack',{
env: {region: "us-east-1"}
});
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Troubleshooting for RDS Proxy - AWS Documentation
Common issues and solutions ; This RDS proxy has no credentials for the role role_name . Check the credentials for this role and...
Read more >Connecting your Java AWS Lambda to an RDS database and ...
Now that we covered the setup for AWS Lambdas to connect to RDS instances and RDS Proxies, let's go over the code necessary...
Read more >Troubleshooting for RDS Proxy - 亚马逊云科技
Learn how to troubleshoot issues with RDS Proxy. ... For example, the value ucs2 is not valid because it can crash the MySQL...
Read more >Migrating MySQL 8.0.20 database to AWS Aurora
That feels like a question for dba.stackexchange.com · @Maurice thanks I didn't know about this! · You might want to look at the...
Read more >Migrating MySQL 8.0.20 database to AWS Aurora
I was trying to use the AWS RDS Proxy service and realized that the only compatible versions with the service are AWS Aurora...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
my pleasure, thank you for the extensive examples. extremely helpful
I updated and deployed both the Typescript and the Python version incorporating the first two changes. I deploy from cloud9 and don’t need to manually specify a region in the setup. That’s maybe something that needs better documented by the cdk team to say when/why you would do it manually vs coming in through aws profile