amazon-rds-aurora

how to handle ever-changing password in sqlalchemy+psycopg2?

有些话、适合烂在心里 提交于 2019-12-05 18:46:44
I inherited some code that uses sqlalchemy with psycopg2, which needs to run on AWS. RDS Postgres supports iam-based authentication, but the way it does it is rather kludgy: you request a temporary password using the AWS RDS API, which is good for about 15 minutes, and you pass that as the password. The code I have effectively does e = create_engine(make_sqlalchemy_string()) , where make_sqlalchemy_string() makes an aws api call, gets the temporary password, and everything is good for a while. Except something, somewhere in the sqlalchemy code closes the connection, and then the password is no

Connect to Aurora Serverless using EC2 as Proxy

一世执手 提交于 2019-12-04 18:01:52
Not a duplicate of AWS Aurora MySQL serverless: how to connect from MySQL Workbench . Aurora Serverless doesn't support public connections yet. I used Cloud9 to create an EC2 instance on the same VPN as the database. I then connected to the database from the Cloud9 terminal. My (GraphQL Prisma) service that I'm attempting to host (on Zeit Now) only takes a HOST and a PASSWORD for configuration. How can I make the EC2 instance act as a proxy that I can treat exactly as a database endpoint. Can tunneling fully do that and I'm just bad at it? I think this blog may help you. The idea, is make a

AWS Aurora: The MySQL server is running with the --read-only option so it cannot execute this statement

Deadly 提交于 2019-12-04 15:55:35
问题 I am getting this error when executing a GRANT statement on my Aurora DB instance in AWS: The MySQL server is running with the --read-only option so it cannot execute this statement My user is not read-only though, so why is this happening? 回答1: It turned out to be a silly mistake, but posting it anyway in case anyone else has the problem: I was accessing the replica instance by mistake - I had copied the endpoint for the replica, and it is read-only apparently. So if you have this problem,

.NET & MySQL error - A call to SSPI failed … “message received was unexpected or badly formatted” AND “buffers supplied to a function was too small”

别等时光非礼了梦想. 提交于 2019-12-04 11:48:34
问题 I hope this is not too vague of a question, but I have looked far and wide but have not been able to find anything helpful for this error. I have a .NET 4.5.2 web service tier (using ServiceStack & Dapper) that has been receiving these two errors infrequently ever since we deployed the service. The first error: 2017-09-29 18:13:26.637 +00:00 [Error] Class: "TokenRepository" | Method: "GetToken" System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception.

AWS Aurora: The MySQL server is running with the --read-only option so it cannot execute this statement

时光毁灭记忆、已成空白 提交于 2019-12-03 09:57:15
I am getting this error when executing a GRANT statement on my Aurora DB instance in AWS: The MySQL server is running with the --read-only option so it cannot execute this statement My user is not read-only though, so why is this happening? It turned out to be a silly mistake, but posting it anyway in case anyone else has the problem: I was accessing the replica instance by mistake - I had copied the endpoint for the replica, and it is read-only apparently. So if you have this problem, verify that you are connecting to the Primary Instance or best of all the DB Cluster endpoint. Edit:

.NET & MySQL error - A call to SSPI failed … “message received was unexpected or badly formatted” AND “buffers supplied to a function was too small”

别说谁变了你拦得住时间么 提交于 2019-12-03 07:27:59
I hope this is not too vague of a question, but I have looked far and wide but have not been able to find anything helpful for this error. I have a .NET 4.5.2 web service tier (using ServiceStack & Dapper) that has been receiving these two errors infrequently ever since we deployed the service. The first error: 2017-09-29 18:13:26.637 +00:00 [Error] Class: "TokenRepository" | Method: "GetToken" System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted ---

Can't create Multi-AZ Aurora RDS Instance

偶尔善良 提交于 2019-12-02 05:47:09
问题 When I restore a MySQL snapshot, I'm given the option to make the new instance Multi-AZ. However for some reason when I restore to Aurora, the "Multi-AZ Deployment" selection is disabled. I thought possibly this meant it was automatically enabled. However when I go to the running instance details, it specifically lists Multi-AZ: "No". Is there something I'm missing? Is there some other step I need to do to make Aurora Multi-AZ? 回答1: Multi-AZ doesn't mean the same thing in Aurora as it does

Aurora Serverless on GA version permit connections from internet?

ε祈祈猫儿з 提交于 2019-12-02 03:52:49
问题 I know that Aurora serverless version, on the preview, has the following restrictions: There isn't enable for connection from internet. Only is possible connections from the same VPC in which is our Aurora cluster. Now, Aurora serverless is on general availability, so I am wondering if this restriction exists nowadays. Someone have had success exposing the aurora serverless cluster to internet? 回答1: Nope. According to their forums, that feature is still on their to-do list. Source:https:/

Optimize write performance for AWS Aurora instance

坚强是说给别人听的谎言 提交于 2019-11-30 09:06:20
I've got an AWS Aurora DB cluster running that is 99.9% focused on writes. At it's peak, it will be running 2-3k writes/sec. I know Aurora is somewhat optimized by default for writes, but I wanted to ask as a relative newcomer to AWS - what are some best practices/tips for write performance with Aurora? Bill Karwin From my experience, Amazon Aurora is unsuited to running a database with heavy write traffic. At least in its implementation circa 2017. Maybe it'll improve over time. I worked on some benchmarks for a write-heavy application earlier in 2017, and we found that RDS (non-Aurora) was

Optimize write performance for AWS Aurora instance

和自甴很熟 提交于 2019-11-29 07:58:06
问题 I've got an AWS Aurora DB cluster running that is 99.9% focused on writes. At it's peak, it will be running 2-3k writes/sec. I know Aurora is somewhat optimized by default for writes, but I wanted to ask as a relative newcomer to AWS - what are some best practices/tips for write performance with Aurora? 回答1: From my experience, Amazon Aurora is unsuited to running a database with heavy write traffic. At least in its implementation circa 2017. Maybe it'll improve over time. I worked on some