amazon-rds

AWS CloudFormation - Create Tables After RDS Instance Is Ready?

匆匆过客 提交于 2020-07-29 12:59:08
问题 CloudFormation amateur here. Been looking online and can't find any references as to how I would go about creating my tables after my RDS instance is stood up through CloudFormation. Is it possible to specify a Lambda to launch and create all the tables, or maybe specify a SQL file to be applied? What's the standard pattern on this? 回答1: There aren't any CloudFormation resources which deal with the 'internals' of an RDS instance once it's been created; it's a black box which you're expected

Adding Spot Instances to the Security Group of an RDS Instance

若如初见. 提交于 2020-07-22 21:40:15
问题 I have an RDS MySQL persistant instance, and I am trying to run spot instances which are created once every 8 hours and then destroyed. The issue I am having is that I don't understand how can I add those spot instances which have dynamic IPs to the security group of my RDS Instance in order to let them perform queries,etc. Should I grab the IP as soon as the spot instance is created and the add it to the security group of the RDS instance each time a new spot instances is created? Also

Adding Spot Instances to the Security Group of an RDS Instance

别来无恙 提交于 2020-07-22 21:39:16
问题 I have an RDS MySQL persistant instance, and I am trying to run spot instances which are created once every 8 hours and then destroyed. The issue I am having is that I don't understand how can I add those spot instances which have dynamic IPs to the security group of my RDS Instance in order to let them perform queries,etc. Should I grab the IP as soon as the spot instance is created and the add it to the security group of the RDS instance each time a new spot instances is created? Also

CloudFormation templates for Global Aurora Database

十年热恋 提交于 2020-07-18 08:32:12
问题 I am trying to write Cloudformation template to get a aws Global Aurora Database. However I am not able to figure out where and how to add the Global database identifier. Can someone help Cloudformation snippet? below is my code: Description: RDS Aurora MySQL cluster. Parameters: DatabaseName: Default: "testglobalaurora" Description: The database name Type: String DatabaseInstanceType: Default: db.r4.large AllowedValues: - db.r4.large - db.r4.xlarge - db.r4.2xlarge - db.r4.4xlarge - db.r4

Cannot establish connection with AWS RDS Oracle database instance from Oracle SQL Developer

主宰稳场 提交于 2020-07-10 09:27:19
问题 I created an Oracle database in the AWS RDS console. I'm unable to connect to it from the Oracle SQL Developer program despite following all the instructions in the Amazon Developer Guides (see item #3 in this webpage in particular). I get this error: IO Error: the network adapter could not establish the connection (vendor code 17002). I have opened Port 1521 in my firewall settings. Screenshots of my SQL Developer connection properties pane and the database properties from the AWS RDS

AWS RDS Database show timeout error

喜你入骨 提交于 2020-07-07 11:29:36
问题 When accessing RDS from an EC2 instance that time show me timeout error Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection timed out in i have try to specifying the IP address of the EC2 instance and specify the internal IP of the RDS instance but error is same. 回答1: The most probable reason is that your RDS Security Groups are not configured to allow incoming traffic. You need to change those security groups and allow inbound traffic. Would recommend that inbound traffic's

AWS RDS PostgreSQL access to pg_catalog.pg_authid forbidden in all contexts?

北慕城南 提交于 2020-07-03 10:18:52
问题 PostgreSQL said: permission denied for relation pg_authid Is pg_authid just unavailable on AWS RDS in all contexts because of RDS locking down the super role? My role created the table, so pg_catalog should come by default (and not need to be added to search path) if I'm reading psql docs right. Just need SELECT , not create ability. Haven't been able to find a definitive AWS RDS documentation page where it says that pg_catalog.pg_authid is not allowed in any context, but I've inherited a

On aws-rds on aws-cdk, where is the setting to make database publicly accessible?

大憨熊 提交于 2020-06-14 06:28:09
问题 With AWS RDS, the console and the CLI/API both have a switch to make the database publicly accessible, but I cannot find a way to do this with the new aws-cdk using the constructs provided. There is a boolean for this in the Cloud Formation classes (e.g. CfnDBInstance), but I can't find documentation on how to use that in combination with the constructs. The CDK is pretty amazing, and it set up everything perfectly with just a few lines of code, except for this one piece. 回答1: Whether the

On aws-rds on aws-cdk, where is the setting to make database publicly accessible?

此生再无相见时 提交于 2020-06-14 06:28:08
问题 With AWS RDS, the console and the CLI/API both have a switch to make the database publicly accessible, but I cannot find a way to do this with the new aws-cdk using the constructs provided. There is a boolean for this in the Cloud Formation classes (e.g. CfnDBInstance), but I can't find documentation on how to use that in combination with the constructs. The CDK is pretty amazing, and it set up everything perfectly with just a few lines of code, except for this one piece. 回答1: Whether the

ERROR 1045 (28000) on AWS RDS mysql LOAD DATA INFILE

三世轮回 提交于 2020-06-09 05:35:31
问题 I'm using MySQL 8.0.16 on AWS RDS. When I run SQL command: mysql> LOAD DATA INFILE 't1.csv' INTO TABLE t1 FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'; ERROR 1045 (28000): Access denied for user 'admin'@'%' (using password: YES) Running mysqlimport from Shell: $ mysqlimport --local --compress -u admin -pXXXXXXX -h HOST.rds.amazonaws.com DB --verbose --lines-terminated-by="\n" --fields-terminated-by=, --fields-enclosed-by='"' t1.csv mysqlimport: [Warning] Using a password