amazon-rds

Elastic Beanstalk: Migrate DB Security Group to VPC Security Group

落花浮王杯 提交于 2019-12-03 20:50:07
When trying to deploy my application, I recently got the following error: ERROR: Service:AmazonCloudFormation, Message:Stack named 'awseb-e-123-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: The following resource(s) failed to update: [AWSEBRDSDatabase]. ERROR: Updating RDS database named: abcdefg12345 failed Reason: DB Security Groups can no longer be associated with this DB Instance. Use VPC Security Groups instead. ERROR: Failed to deploy application. How do you switch over a DB Security Group to a VPC Security Group? Steps for using the Elastic Beanstalk

AWS CLI create RDS with elasticbeanstalk create-environment

☆樱花仙子☆ 提交于 2019-12-03 20:02:30
问题 How can I create an RDS instance with the create-environment or another subcommand of aws elasticbeanstalk ? I've tried several combinations of parameters to no avail. Below is an example. APP_NAME="randall-railsapp" aws s3api create-bucket --bucket "$APP_NAME" APP_VERSION="$(git describe --always)" APP_FILE="deploy-$APP_NAME-$APP_VERSION.zip" git archive -o "$APP_FILE" HEAD aws s3 cp "$APP_FILE" "s3://$APP_NAME/$APP_FILE" aws --region us-east-1 elasticbeanstalk create-application-version \ -

RDS Database storage runs out of space

邮差的信 提交于 2019-12-03 17:50:36
问题 I just upgraded my RDS Storage from 10GB to 20GB and after a couple of days RDS says Storage full again. Running this query in MySQL workbench against the same DB says the DB size is 43MB SELECT table_schema "database_name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 "Free Space in MB" FROM information_schema.TABLES GROUP BY table_schema ; So is there something going on with the logs that MySQL creates or the backups etc that might

Creating MySQL Events in Amazon RDS

半世苍凉 提交于 2019-12-03 17:50:10
问题 I'm trying to create a MySQL Event on an RDS database. It took me a bit to figure out that I needed to change the DB Parameters and get the scheduler started. However, even with the scheduler running (I see is running in SHOW PROCESSLIST), I am still getting "ERROR 1044 (42000): Access denied for user..." when I create an event. I tried posting on the AWS discussion boards, but nothing. Has anyone created a MySQL event in an AWS RDS instance? If so, what I am not doing, or what am I missing

Why can't I connect AWS RDS instance from EC2 instance in another VPC after peering

拈花ヽ惹草 提交于 2019-12-03 17:22:58
问题 I am running Tableau Server on our EC2 instance in VPC A. Meanwhile, I created a postgres RDS in another VPC B. Now I want to establish the connection between the Tableau Server and RDS. CIDR of RDS VPC is 172.31.0.0/16 and that of EC2 VPC is 10.0.0.0/16. According to A DB Instance in a VPC Accessed by an EC2 Instance in a Different VPC, I created peering between VPC A and VPC B, pcx-xyz123. Besides, I also created the following route tables for the VPCs. RDS VPC Destination Target 172.31.0.0

Connect to Amazon RDS with PHP

我只是一个虾纸丫 提交于 2019-12-03 16:47:54
I am trying to connect my RDS Instance with my PHP connection file. This is what I have in my file: define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'User Name'); define('DB_PASSWORD', 'Password'); define('DB_DATABASE', 'DATABASE'); $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error()); $database = mysql_select_db(DB_DATABASE) or die(mysql_error()); I replaced localhost with my endpoint (rds thing) url, username and password with my RDS Instance user and pass and database name the one I've set when I created the instance. But it doesn't seem to work. Is

Kubernetes container connection to RDS instance in separate VPC

痴心易碎 提交于 2019-12-03 13:52:15
I have a Kubernetes cluster running in Amazon EC2 inside its own VPC, and I'm trying to get Dockerized services to connect to an RDS database (which is in a different VPC). I've figured out the peering and routing table entries so I can do this from the minion machines: ubuntu@minion1:~$ psql -h <rds-instance-name> Password: So that's all working. The problem is that when I try to make that connection from inside a Kubernetes-managed container, I get a timeout: ubuntu@pod-1234:~$ psql -h <rds-instance-name> … To get the minion to connect, I configured a peering connection, set up the routing

AWS RDS SQL Server unable to drop database

家住魔仙堡 提交于 2019-12-03 12:54:52
I tried to migrate a SQL Server database by Export Data-tier Application ( .bacpac file) from an Amazon RDS instance to other, but import didn't succeed. So now I want to delete the database (which is empty), when I try to: DROP DATABASE mydatabase; I get the error: Cannot drop the database 'mydatabase', because it does not exist or you do not have permission Some context: I've tried using SQL Server Management Studio, and choosing close connections: same error. I'm logged as master user. I can create and drop other databases, but not this one. I just have these effective permissions on this

Explain this memory consumption pattern in Amazon RDS/Mysql?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 11:41:28
Folks, Can someone explain this memory consumption pattern on Amazon RDS running Mysql? In this graph, I upgraded to a db.m2.2xlarge, with 34GB of available memory, at 03:30. You can see the switchover very clearly. As clients start connecting and hitting that instance, the Freeable memory drops steeply to 5GB, where it is now hovering. On my previous upgrade between DB instance sizes, I saw the same pattern, until the freeable memory dropped to just under 1GB and hovered there indefinitely. What is this instance doing between 03:30 and 07:30? Why isn't it freeing unused memory as it becomes

ERROR 2005 (HY000): Unknown MySQL server host in aws

試著忘記壹切 提交于 2019-12-03 10:29:41
I have created an e-commerce site in angular js. And I need to host the same in amazon web service. So inorder to host the same I created an ec2 instance first. Now after that added an rds instance with a security group of VPC by allowing all ip's as outbound and inbound. While creating security group I specified for mysql and for all connection. Still after I remotely loged into the instance and try to connect to the end point from rds instance using mysql -u username -p password -h ********.ap-southeast-1.rds.amazonaws.com:3306 I get an error ERROR 2005 (HY000): Unknown MySQL server host