amazon-rds

Lambda can not access RDS though those are in the same VPC

吃可爱长大的小学妹 提交于 2019-12-11 00:47:26
问题 I have created VPC and RDS with the below CloudFormation . Resources: TestVpc: Type: "AWS::EC2::VPC" Properties: CidrBlock: "10.0.0.0/16" EnableDnsSupport: true EnableDnsHostnames: true TestSubnetA: Type: "AWS::EC2::Subnet" Properties: AvailabilityZone: "ap-northeast-1a" CidrBlock: "10.0.0.0/20" VpcId: !Ref TestVpc TestSubnetB: Type: "AWS::EC2::Subnet" Properties: AvailabilityZone: "ap-northeast-1d" CidrBlock: "10.0.16.0/20" VpcId: !Ref TestVpc TestSubnetC: Type: "AWS::EC2::Subnet" Properties

Trouble connecting Heroku App with Amazon RDS Instance

依然范特西╮ 提交于 2019-12-11 00:41:12
问题 I'm using Amazon RDS for the first time ever and I've been following the heroku docs to get my app using the RDS instance. So far I've created an instance and I have setup the addon using the format: $ heroku addons:add amazon_rds url=mysql://user:pass@rdshostname.amazonaws.com/databasename After running heroku rake db:migrate I got !!! The bundled mysql.rb driver rake aborted! no such file to load -- mysql So I installed the MySQL gem. Doing the same thing again I got the error: Can't

Using Elastic Beanstalk .ebextensions to specify an RDS database

杀马特。学长 韩版系。学妹 提交于 2019-12-10 16:33:04
问题 With Elastic Beanstalk, can you specify whether you want to create an RDS database using .ebextensions? 回答1: No, .ebextensions are evaluated per deployment, not per environment creation. You can choose to create or not the RDS when you create the Environmnet automatically the CLI or the API. Also, you can use a Resources key with the AWSEBRDSDatabase name in you .ebextensions to get a reference to that database. see: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources

Amazon Cloud configuration for Java EE web app with MySQL

社会主义新天地 提交于 2019-12-10 14:47:07
问题 In my work I need to move some existing Enterprise Java applications to AWS. I have gone through many pages on aws.amazon.com and also googled enough. Also, I have tried to go through all the related questions at stackoverflow. All these things made many things clear, however, I am still having some confusion. Here is our application structure: It is a Spring based application which uses Spring MVC as its presentation layer and plain Java Interfaces and Classes for handling business and data

Max pool size was reached error for parallel connections

▼魔方 西西 提交于 2019-12-10 12:26:55
问题 I have a sql database and I am using Microsoft.Practices.EnterpriseLibrary for db communication. I have a database provider class as below: public class DBProvider { #region Properties #region Database /// <summary> /// The db instance. /// </summary> private Database database; #region Ctors /// <summary> /// Initializes a new instance of the <see cref="DBProvider"/> class. /// </summary> public DBProvider() { DatabaseProviderFactory dbProvider = new DatabaseProviderFactory(); database =

Error: packet sequence number wrong after upgrading RDS instance

£可爱£侵袭症+ 提交于 2019-12-10 11:37:38
问题 After upgrading my RDS to a larger instance class, I started seeing packet sequence number wrong in my error logs. I have 2 web servers created by the ElasticBeanstalk. How do I got rid of the error? Most of the literature (here and on the web in general) blame this error on multithreading, which we're not using. 回答1: The solution was to reboot the instances, one by one. The safest way seemed to be from the Health tab of the ElasticBeanstalk; select each instance, and under Instance Action

Django AWS RDS MySQL Error: (2026, 'SSL connection error: error:00000001:lib(0):func(0):reason(1)')

[亡魂溺海] 提交于 2019-12-10 10:33:49
问题 I'm having some trouble connecting to my AWS RDS Database from my Python/Django application. I'm getting this error when trying to run my application locally: django.db.utils.OperationalError: (2026, 'SSL connection error: error:00000001:lib(0):func(0):reason(1)') I couldn't find any answers online as I am not trying to connect via SSL. My Database settings in settings.py is straightforward: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': '<my db name>', 'USER': '<my

Amazon RDS and Elastic Beanstalk connectivity

旧街凉风 提交于 2019-12-10 10:15:28
问题 There are already several threads where this question is discussed, and I have already tried implementing suggestions discussed in Elastic Beanstalk -> RDS connection error using Grails . I have also opened ports to accept connections from "All" for ICMP, TCP and UDP in my EC2 instance. I have made sure that my RDS and EC2 instances are in the same zone (Eastern) I have also added the "elasticbeanstalk-default" security group in RDS default security group I have added my local machine's IP

Copying CSV to Amazon RDS hosted Postgresql database

天大地大妈咪最大 提交于 2019-12-10 03:21:28
问题 I have a database hosted using Amazon's RDS service and I am attempting to write a web service that will update said database. The problem I am having is that it will not let me use the COPY command as I get this error: "ERROR: must be superuser to COPY to or from a file". I am using the only user I have made for the database and I am fairly certain it has superuser access. I can, however, use PGAdmin's import tool to import the data which, when looking at the log, uses almost the exact same

AWS RDS painfully slow when connecting from local machine

大城市里の小女人 提交于 2019-12-10 01:00:59
问题 I have an AWS RDS instance up and running. When the DB is queried from my website (also on AWS, same region) it runs beautifully. But, if I try to connect to the database from my local developments machine it takes AGES for any query to execute. Does anyone know why? I have opened up the security group to allow connections (while i try to connect from the local machine). 回答1: Sounds like there is a problem with your internet connection? All the queries from your local workstation have to go