amazon-rds

Stopping an Amazon RDS DB Instance Temporarily

▼魔方 西西 提交于 2021-01-28 09:41:48
问题 Is there a way to create a cron job in AWS that automatically starts / stops the DB everyday ? 回答1: You can use AWS Lambda Scheduled Events to start and stop the RDS Server writing code using AWS SDK for RDS. You can use startDBInstance and stopDBInstance methods. Following example shows how to stop the DB instance using AWS SDK for NodeJS. var params = { DBInstanceIdentifier: 'STRING_VALUE', /* required */ DBSnapshotIdentifier: 'STRING_VALUE' }; rds.stopDBInstance(params, function(err, data)

boto3 RDS get all Database names of a DB instance

耗尽温柔 提交于 2021-01-28 07:24:38
问题 I have 2 database name of MySQL Aurora for same host, username and password. Like Below {"host": "aaaa....rds.amazonaws.com" , "username": "test", "password": "test", "database": "db1" } Similarly {"host": "aaaa....rds.amazonaws.com" , "username": "test", "password": "test", "database": "db2" } But I can not find the second database name while I am trying to access rds database instances by using boto 3 as stated below rds.describe_db_instances()['DBInstances'] It only return db1 not the db2

How do I connect to AWS RDS MySQL from Java/Spring application using AWS IAM Authentication?

对着背影说爱祢 提交于 2021-01-28 06:05:49
问题 I am new to AWS world and still learning. It's been only a month that I am trying things. I have been looking for it for quite a few days now and haven't been able to find a correct and more appropriate solution. Therefore it would be great if somebody can help me by giving a sample code, provide some pointer or guide in the right direction. I have a AWS RDS MySQL instance and a database created. I have configured " IAM DB AUthentication Enabled " to "Yes". Created an IAM Role and Policy as

change innodb_log_file_size variable value for Amazon RDS MYSQL Linux server

跟風遠走 提交于 2021-01-28 04:26:17
问题 we are using Amazon RDS linux server for MYSQL. what is the way to change my.cnf file variable values ?? i am trying to change innodb_log_file_size variable. Can you please update me which is the best way to change? So please help me on this Thank you in Advance 回答1: Create a new DB paramater group with your required values and attach to your RDS. 回答2: You cannot change that value in Aurora, the storage engine is different than rds mysql or standard mysql and optimized internally. No need to

AWS DMS endpoint connection to Redshift not working

喜欢而已 提交于 2021-01-27 22:00:16
问题 I'm currently trying so setup a replication from RDS (MySQL) to Redshift via DMS. The endpoint to RDS is working, but the one to Redshift is not. Here is my setup: VPC RDS, DMS, and Redshift are running in the same VPC and share the same subnets. Roles I implemented the required roles for DMS ( dms-vpc-role , dms-cloudwatch-logs-role ) and the specific one for Redshift ( dms-access-for-endpoint ) according to the AWS documentation. Security groups The security group setup is the same as well.

Connecting to Amazon RDS MySql remotely

五迷三道 提交于 2021-01-27 05:40:59
问题 I'm trying to connect to MySql on Amazon RDS from my computer, using MySql WorkBench , or HeidiSql or even the console Mysql.exe and i'm getting this error all the time: ERROR 2003 (HY000): Can't connect to MySQL server on 'MY-SERVER-NAME' (10060) In the Security group of the instance I created a new Inbound rule that allows all traffic, and applied it, and still - same error. I have no active Firewall on my computer, and have good internet access I am able to access the DB from the Amazon

Intermittent timeouts between AWS Lambda and RDS

冷暖自知 提交于 2021-01-27 05:31:14
问题 We are currently experiencing what I can only describe as random intermittent timeouts between AWS Lambda and RDS. After deploying our functions and running them successfully, they can randomly switch to a state of timing out with no configuration changes . Important to note, we are also monitoring the DB connections and can confirm that we aren't running into a max connection issue. Here are the details on our setup: Code being executed (using Node.JS v. 6.10): const mysql = require('mysql')

Intermittent timeouts between AWS Lambda and RDS

血红的双手。 提交于 2021-01-27 05:29:21
问题 We are currently experiencing what I can only describe as random intermittent timeouts between AWS Lambda and RDS. After deploying our functions and running them successfully, they can randomly switch to a state of timing out with no configuration changes . Important to note, we are also monitoring the DB connections and can confirm that we aren't running into a max connection issue. Here are the details on our setup: Code being executed (using Node.JS v. 6.10): const mysql = require('mysql')

“Database hosts array is empty.” after deploying Laravel project on AWS Elastic Beanstalk

纵饮孤独 提交于 2021-01-05 09:45:29
问题 I deployed my project to an AWS EC2 instance using Elastic Beanstalk. I used this tutorial https://www.youtube.com/watch?v=ISVaMijczKc as a reference while deploying. I am following everything as it is in the tutorial but I ended up with an error. Database hosts array is empty. (SQL: select * from resource_categories ) The following are my codes. database.php <?php define('RDS_HOSTNAME', $_SERVER['RED_HOSTNAME']); define('RDS_USERNAME', $_SERVER['RED_USERNAME']); define('RDS_PASSWORD', $

“Database hosts array is empty.” after deploying Laravel project on AWS Elastic Beanstalk

一个人想着一个人 提交于 2021-01-05 09:44:15
问题 I deployed my project to an AWS EC2 instance using Elastic Beanstalk. I used this tutorial https://www.youtube.com/watch?v=ISVaMijczKc as a reference while deploying. I am following everything as it is in the tutorial but I ended up with an error. Database hosts array is empty. (SQL: select * from resource_categories ) The following are my codes. database.php <?php define('RDS_HOSTNAME', $_SERVER['RED_HOSTNAME']); define('RDS_USERNAME', $_SERVER['RED_USERNAME']); define('RDS_PASSWORD', $