amazon-rds

Connecting Heroku Lumen App to Amazon RDS MySQL 5.7.19

倾然丶 夕夏残阳落幕 提交于 2020-01-14 06:35:32
问题 I have granted access for the Amazon RDS MySQL instance (5.7.19) for 0.0.0.0/0 as suggested by Heroku. This makes the connection work successfully. When I force SSL for the mysql-user (ALTER USER 'user'@'%' REQUIRE SSL;) the connection breaks. I have followed these instructions from Heroku. My Heroku DATABASE_URL config variable: mysql://username:password@AMAZONRDSMYSQLURL/DATABASE?sslca=config/amazon-rds-ca-cert.pem The certificate is stored under /config/amazon-rds-ca-cert.pem From my

AWS: can't connect to RDS database from my machine

纵然是瞬间 提交于 2020-01-11 16:37:51
问题 The EC2 instance/live web can connect just fine to the RDS database. But when I want to debug the code in my local machine, I can't connect to the database and got this error: OperationalError: (2003, "Can't connect to MySQL server on 'aa9jliuygesv4w.c03i1 ck3o0us.us-east-1.rds.amazonaws.com' (10060)") I've added .pem and .ppk keys to .ssh and I already configure EB CLI. I don't know what should I do anymore. FYI: The app is in Django 回答1: It turns out it is not that hard. Do these steps: Go

Amazon RDS instance backup window duration?

自作多情 提交于 2020-01-11 01:22:17
问题 What does the backup window duration setting mean when configuring an Amazon RDS instance? 回答1: If you are using automated backup for a DB instance, by enabling backups. The Backup Window time is the time in which the instance’s back up will be created. Start time : This means the time of the day you configure the backup to take place. Duration : This is the time window where back up will be taken - Default is 30 minutes. For details : http://aws.typepad.com/aws/2011/03/amazon-rds-maintenance

Should I stick only to AWS RDS Automated Backup or DB Snapshots?

。_饼干妹妹 提交于 2020-01-09 15:02:35
问题 I am using AWS RDS for MySQL. When it comes to backup, I understand that Amazon provides two types of backup - automated backup and database (DB) snapshot. The difference is explained here. However, I am still confused: should I stick to automated backup only or both automated and manual (db snapshots)? What do you think guys? What's the setup of your own? I heard from others that automated backup is not reliable due to some unrecoverable database when the DB instance is crashed so the DB

Should I stick only to AWS RDS Automated Backup or DB Snapshots?

梦想的初衷 提交于 2020-01-09 15:00:00
问题 I am using AWS RDS for MySQL. When it comes to backup, I understand that Amazon provides two types of backup - automated backup and database (DB) snapshot. The difference is explained here. However, I am still confused: should I stick to automated backup only or both automated and manual (db snapshots)? What do you think guys? What's the setup of your own? I heard from others that automated backup is not reliable due to some unrecoverable database when the DB instance is crashed so the DB

Remove locks without a pid in postgres

ぃ、小莉子 提交于 2020-01-06 17:56:27
问题 I am using PostgreSQL 9.6.1 on Amazon Web Services RDS How can I remove the locks below? I was expecting a PID to remove, but they are empty in this example. business_data=> CREATE OR REPLACE VIEW public.active_locks AS business_data-> SELECT t.schemaname, business_data-> t.relname, business_data-> l.locktype, business_data-> l.page, business_data-> l.virtualtransaction, business_data-> l.pid, business_data-> l.mode, business_data-> l.granted business_data-> FROM pg_locks l business_data->

AWS RDS and pgAdmin4 : Unable to connect to server: could not connect to server: Connection timed out

亡梦爱人 提交于 2020-01-06 12:51:51
问题 I am trying to manipulate db directly from pgAdmin4 but I cannot connect. What I checked and did are I read this doc and following https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html#USER_ConnectToPostgreSQLInstance.Troubleshooting and input the information about the db instance as the doc does. However I couldn't connect and I checked the security group. The VPC security group is like this. What else should I check? I totally have no idea how I can

AWS EC2 Could not open a connection to SQL Server

半腔热情 提交于 2020-01-05 10:29:13
问题 My web application on EC2 is not able to connect to AWS RDS Db instance. error: SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Win32Exception (0x80004005): The network path was

connecting to amazon rds with psycopg2 via lambda

点点圈 提交于 2020-01-05 09:26:33
问题 my code on aws lambda: import sys, boto3, logging, rds_config, psycopg2 rds_host = "hostname" name = rds_config.db_username password = rds_config.db_password db_name = rds_config.db_name s3 = boto3.resource('s3') rds_client = boto3.client('rds',aws_access_key_id=Access_Key,aws_secret_access_key=Secret_Access_Key) instances = rds_client.describe_db_instances() print (instances) try: conn = psycopg2.connect(host=rds_host, database=db_name, user=name, password=password) cur = conn.cursor()

connecting to amazon rds with psycopg2 via lambda

一世执手 提交于 2020-01-05 09:26:10
问题 my code on aws lambda: import sys, boto3, logging, rds_config, psycopg2 rds_host = "hostname" name = rds_config.db_username password = rds_config.db_password db_name = rds_config.db_name s3 = boto3.resource('s3') rds_client = boto3.client('rds',aws_access_key_id=Access_Key,aws_secret_access_key=Secret_Access_Key) instances = rds_client.describe_db_instances() print (instances) try: conn = psycopg2.connect(host=rds_host, database=db_name, user=name, password=password) cur = conn.cursor()