amazon-rds

unable to connect to AWS VPC RDS instance (mysql or postgres)

▼魔方 西西 提交于 2019-12-24 14:26:51
问题 (I'm posting this question after the fact because of the time it took to find the root cause and solution. There's also a good chance other people will run into the same problem) I have an RDS instance (in a VPC) that I'm trying to connect to from an application running on a classic EC2 instance, connected via ClassicLink. Security groups and DNS aren't an issue. I am able to establish socket connections to the RDS instance, but cannot connect with CLI tools (psql, mysql, etc.) or DB GUI

AWS Datapipeline - issue with accented characters

青春壹個敷衍的年華 提交于 2019-12-24 11:37:52
问题 I am new to AWS datapipeline. I created a successful datapipeline to pull all the content from RDS to S3 bucket. Everything works. I see my .csv file in S3 bucket. But I am storing spanish names in my table, in csv I see "Garc�a" instead of "García" 回答1: Looks like the wrong codepage is used. Just reference the correct codepage and you should be fine. The following topic might help: Text files uploaded to S3 are encoded strangely? 回答2: AWS DataPipeline is implemented in Java, and uses JDBC

Error Importing a .dmp file in AWS RDS Oracle DB

℡╲_俬逩灬. 提交于 2019-12-24 10:55:19
问题 I have followed the AWS Importing Data into RDS guide. I have copied the .dmp file from Source Oracle Instance on another machine to the DATA_DUMP_DIR on RDS Instance. Now I am trying to import it using the code below: DECLARE hdnl NUMBER; BEGIN hdnl := DBMS_DATAPUMP.OPEN( operation => 'IMPORT', job_mode => 'SCHEMA', job_name=>null); DBMS_DATAPUMP.ADD_FILE( handle => hdnl, filename => 'sample_copied.dmp', directory => 'DATA_PUMP_DIR', filetype => dbms_datapump.ku$_file_type_dump_file); DBMS

Migrating Spring Batch MyISAM Sequence Tables to InnoDB

允我心安 提交于 2019-12-24 02:19:07
问题 Spring batch uses a few sequence tables, which in the case of MySQL use the MyISAM storage engine. The issue I'm facing is that I'm using an Amazon Web Services RDS database, and their "Point in Time" database restore feature does not play nicely with databases containing MyISAM tables. I'm looking for a solution that will let me switch out these Spring Batch MyISAM sequence tables and replacing them with InnoDB tables instead, with the goal of enabling the AWS RDS "Point in Time" database

Postgres uses wrong index in query plan

痴心易碎 提交于 2019-12-24 00:59:02
问题 Below I have 2 almost identical queries, only the limit is different. Nevertheless, the query plan and execution time are totally different. The first query is +300 times slower than the second one. The problem only occurs for a small number of owner_ids. Owners with many routes (+1000), none of which has recently been edited. The table route contains 2,806,976 rows. The owner in the example has 4,510 routes. The database is hosted on Amazon RDS on a server with 34.2 GiB memory, 4vCPU and

DB Security Groups can only be associated with VPC DB Instances using API versions

匆匆过客 提交于 2019-12-23 22:17:18
问题 I have this code below to create a RDS instance in aws: import boto.rds REGION="us-east-1" INSTANCE_TYPE="db.t1.micro" ID = "MySQL-db-instance-database-test2" USERNAME="root" PASSWORD = "pass" DB_PORT = 3306 DB_SIZE = 5 DB_ENGINE = "MySQL5.1" DB_NAME = "databasetest2" SECGROUP_HANDLE="default" print "Connecting to RDS" conn = boto.rds.connect_to_region(REGION) print "Creating a RDS Instance" instance = conn.create_dbinstance(ID, DB_SIZE, INSTANCE_TYPE, USERNAME, PASSWORD, port=DB_PORT, engine

Load Testing SQL Alchemy: “TimeoutError: QueuePool limit of size 3 overflow 0 reached, connection timed out, timeout 30”

眉间皱痕 提交于 2019-12-23 22:12:34
问题 I have a SQL-Alchemy based web-application that is running in AWS. The webapp has several c3.2xlarge EC2 instances (8 CPUs each) behind an ELB which take web requests and then query/write to the shared database. The Database I'm using is and RDS instance of type: db.m4.4xlarge . It is running MariaDB 10.0.17 My SQL Alchemy settings are as follows: SQLALCHEMY_POOL_SIZE = 3 SQLALCHEMY_MAX_OVERFLOW = 0 Under heavy load, my application starts throwing the following errors: TimeoutError: QueuePool

Cloudformation template for AmazonRDSEnhancedMonitoringRole

蓝咒 提交于 2019-12-23 20:49:18
问题 I am attempting to spin up an RDS stack via a Cloudformation template. I would like to enable Enhanced Monitoring on my DB instances. In order to do that, the MonitoringRoleArn property must be specified on the resource. As I understand it, this ARN should point to an IAM Service Role that has been given the AmazonRDSEnhancedMonitoringRole policy, as described here: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html I would ideally like to also create that role via

is it possible to connect amazon web service rds with amazon web service cognito?

こ雲淡風輕ζ 提交于 2019-12-23 20:16:20
问题 i am developing a android application using AWS's RDS and AWS Cognito service. so my question is there any way that i can connect the RDS with Cognito? please help. 回答1: I think there are two possible questions here so I'll answer them both. If the question is, can I access RDS from a Cognito authed app: RDS does not use AWS credentials for authentication, it uses database credentials. Cognito only vends credentials for AWS services, so you cannot use Cognito credentials to access an RDS

AWS lambda capture IoT registry event

≯℡__Kan透↙ 提交于 2019-12-23 19:52:02
问题 I'm plan to generate new thing in AWS IoT Registry and once the thing is generated successfully, write the thing arn, thing name, cert information into AWS RDS database. Is this possible to use lambda capture IoT registry event and trigger lambda to write into database? Any suggestion? 回答1: AWS IoT publishes a lot of its events through it's own MQTT broker. In your case you're interested in the $aws/events/thing/<thingName>/created topic (https://docs.aws.amazon.com/iot/latest/developerguide