question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rds proxy code doesn't work with mysql8

See original GitHub issue

you 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonny-rimekcommented, Aug 2, 2020

my pleasure, thank you for the extensive examples. extremely helpful

1reaction
cdk-patternscommented, Aug 2, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found