amazon-rds

Amazon RDS stop instance [duplicate]

∥☆過路亽.° 提交于 2019-12-04 09:52:17
问题 This question already has answers here : Amazon RDS - Online only when needed? (4 answers) Closed 5 years ago . I am working on Amazon RDS, but I don't need instances to run all the day 24/7, as I'm only developing right now. Is there any way to stop an RDS instance when I don't need it? I don't want to pay what I don't use! 回答1: There is no "stop/start" actions for RDS databases, currently you'd have to terminate the database taking a final snapshot and restore from that snapshot. UPDATE:

Setting up RDS (MySQL) database access using IAM to generate access tokens

拥有回忆 提交于 2019-12-04 09:50:01
I have followed the instructions to set up AWS and MySQL such that I should be able to sign in to mysql using mysql-client and a user (named aws_iam ) without a password, but with a token generated by awscli with the role attached to my EC2 instance. The instructions are here So what I have is: An EC2 instance with a role which allows me to generate RDS credentials An RDS instance running MySQL, with a user aws_iam which is identified by AWSAuthenticationPlugin When signed in to the EC2 instance via SSH I can run mysql -h mydb.randomstring.region.rds.amazonaws.com -u root -p and enter the

Accessing Postgres RDS from Kubernetes cluster in AWS

自古美人都是妖i 提交于 2019-12-04 07:26:06
My Kubernetes cluster setup has n-tier web application running in dev and test environments on AWS. For the production environment, postgres RDS was chosen, to ensure periodic backup. While creating a postgres RDS instance, kubernetes-vpc was selected for db-subnet to keep networking stuff simple during pilot run. Also, security group selected is the same as kubernetes-minions. Following is the service and endpoint yaml: apiVersion: v1 kind: Service metadata: labels: name: pgsql-rds name: pgsql-rds spec: ports: - port: 5432 protocol: TCP targetPort: 5432 -- apiVersion: v1 kind: Endpoints

Restore a remote dump to RDS

陌路散爱 提交于 2019-12-04 05:56:20
I know how to restore a pg dump into a RDS database if that dump is in my machine, but how could I do it when the dump is available at a remote location, say Amazon S3? What I want to do is something like this: pg_restore -h somedomain.us-east-1.rds.amazonaws.com -p 5432 -d databasename -U username https://s3.amazonaws.com/database.dump But of course this results in pg_restore: [archiver] could not open input file "https://s3.amazonaws.com/database.dump" Thanks for your help! If a filename is not specified, pg_restore will take data from standard input ( doc ). So, this would work: wget -O -

Node-Mysql throwing connection timeout

断了今生、忘了曾经 提交于 2019-12-04 04:06:05
My node.js app gives 5xx due to connection timeouts at random times. Here's how I connect and query: var mysql = require('mysql'); var config = { host: '172.10.1.1', port: 3306, user: 'user', password: 'pwd', database: 'mydb', connectionLimit: 15, queueLimit: 30 } var poolCluster = mysql.createPool(config); var queryDB = function(query, cb) { poolCluster.getConnection(function(err, connection) { if(err) { cb(err, null); } else { connection.query(query, function (err, rows) { connection.release(); cb(err, rows); }); } }); }; Also, in another alternate version, with connection pooling disabled,

Entity Framework 5 and Amazon RDS - “The underlying provider failed on Open.”

╄→гoц情女王★ 提交于 2019-12-04 04:03:43
问题 I have a C# / Entity Framework web application runs fine against a local SQL 2012 db. I copied the db out to a new RDS instance, and can access the db via Visual Studio and SQL Server Management Studio. I hav a unit test which authenticates the user and then attempts inserts a record in a table using an Entity Framework call -- dataContext.SaveChanges(). I get the following error: {"The underlying provider failed on Open."} {"No such host is known"} {"A network-related or instance-specific

Amazon RDS instance backup window duration?

核能气质少年 提交于 2019-12-04 02:20:16
What does the backup window duration setting mean when configuring an Amazon RDS instance? Ratan Sharma 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-windows-shortened.html from Working With Backups documentaion Below is the answer for "what if

How to 'switch' from MySQL to Amazon RDS with minimal application impact?

怎甘沉沦 提交于 2019-12-04 01:56:32
Amazon officially states: "Amazon RDS gives you access to the full capabilities of a familiar MySQL database. This means the code, applications, and tools you already use today with your existing MySQL databases work seamlessly with Amazon RDS." I don't get this. Amazon RDS is accessible via web services and there a client libraries (like the one for .Net). So if I have an existing .Net application that uses a DAL which in turn queries MySQL, how can I make the same DAL talk to the Amazon RDS (via the web services). Or am I missing something here? delfuego Amazon RDS is pure MySQL, accessible

How to connect to Amazon RDS via SSL?

邮差的信 提交于 2019-12-03 23:31:57
问题 I'm trying to set up an SSL connection to a MySQL database hosted via Amazon RDS. I'm confused as to how to connect. According to Amazon's documentation, I need to download a CA certificate called "rds-ca-2015-root.pem" and use it in my SSL connection. I set the database user that I am connecting with to require SSL. In PHP, I include the code below to initiate the connection: $mysqli = mysqli_init(); mysqli_options($mysqli, MYSQLI_OPT_SSL_VERIFY_SERVER_CERT, true); $mysqli->ssl_set(NULL,

RDS with Cloud Formation and AZ issues

只谈情不闲聊 提交于 2019-12-03 22:39:17
I am using cloud formation to create a setup containing an RDS instance. I am having some difficulties creating the RDS Instance on the account of the following error: DB Subnet Group doesn't meet availability zone coverage requirement. Please add subnets to cover at least 2 availability zones. Current coverage: 1 The problem is that the entire setup is on a single AZ... what am i supposed to do? just create an extra subnet in a different AZ that has nothing in it just for the RDS? Maybe there is some way AWS can create that subnet automatically and leave me out of that mess. I don't want that