amazon-rds

AWS EB undefined RDS_HOSTNAME with Database hosts array empty

懵懂的女人 提交于 2021-02-11 14:35:34
问题 Currently in a Laravel project using AWS EB with RDS. When I run php artisan migrate --seed then I get PHP Notice: Undefined index: RDS_HOSTNAME in /var/app/current/config/database.php on line 5 PHP Notice: Undefined index: RDS_USERNAME in /var/app/current/config/database.php on line 6 PHP Notice: Undefined index: RDS_PASSWORD in /var/app/current/config/database.php on line 7 PHP Notice: Undefined index: RDS_DB_NAME in /var/app/current/config/database.php on line 8 and Database hosts array is

Fargate Task with Nat Gateway fails to connect with RDS database

我的梦境 提交于 2021-02-11 14:34:54
问题 Basically, I'm follow these two guides: Deploying Hasura on AWS with Fargate, RDS and Terraform Deploying Containers on Amazon’s ECS using Fargate and Terraform: Part 2 I have: Postgres RDS Database deployed in 'Multi-AZ' My python/flask app deployed in Fargate across multiple AZ's I run a migration inside the task definition before the app ALB Load balancing between the tasks Logging for RDS, ECS and ALB into Cloudwatch Logs. A NAT gateway with an Elastic IP for each private subnet to get

AWS RDS keep user access with dynamic IP

匆匆过客 提交于 2021-02-11 14:15:12
问题 On AWS rds I added few postgres users. There is Security groups which needs IP addresses for access to DB instance right? So if user have static IP address, then I will add that once and there is no problem. But if user have dynamic address, only way I see is that periodically update IP's for keep users valid connections. My question is: if there is possible to keep dynamic IP users valid connections, without manually update security group data ? Thanks ! 回答1: Following are some of the

Is using Dev/Test RDS is bad idea for your project over Production RDS?

≡放荡痞女 提交于 2021-02-11 07:12:19
问题 I am a student. I am using AWS free tier account. I don't have money to pay for the resources. I have developed an application for the society. I don't want my website should face any downtime in production just because of the free service provided by Amazon.SO, can I go for the Dev/Test RDS for my production application? 回答1: The basic different between a Dev/Test configuration for Amazon RDS and a Production configuration is that the Production configuration has Multi-AZ activated. This

Is using Dev/Test RDS is bad idea for your project over Production RDS?

ε祈祈猫儿з 提交于 2021-02-11 07:09:11
问题 I am a student. I am using AWS free tier account. I don't have money to pay for the resources. I have developed an application for the society. I don't want my website should face any downtime in production just because of the free service provided by Amazon.SO, can I go for the Dev/Test RDS for my production application? 回答1: The basic different between a Dev/Test configuration for Amazon RDS and a Production configuration is that the Production configuration has Multi-AZ activated. This

Restoring an Elastic Beanstalk RDS

强颜欢笑 提交于 2021-02-10 08:14:50
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Restoring an Elastic Beanstalk RDS

假装没事ソ 提交于 2021-02-10 08:09:52
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Restoring an Elastic Beanstalk RDS

邮差的信 提交于 2021-02-10 08:07:01
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Connecting to AWS RDS remotely without key using workbench or other mysql utilities

依然范特西╮ 提交于 2021-02-08 12:12:00
问题 How to connect with MySQL RDS instance in AWS remotely? It keeps throwing the following error when I connect with Standard (TCP/IP) : ERROR 2003 (HY000): Can't connect to MySQL server on 'xxxxxxx.yyyyyyyyy.us-west-2.rds.amazonaws.com' (10060 "Unknown error") Tried with Workbench and MySQL Utilities . However, when using Standard TCP/IP over SSH , when I add .pem key file, I could connect to the instance. 回答1: There are various problems why it cannot be connected: Security Group : The RDS

How to optimise this MySQL query? Millions of Rows

筅森魡賤 提交于 2021-02-07 04:42:46
问题 I have the following query: SELECT analytics.source AS referrer, COUNT(analytics.id) AS frequency, SUM(IF(transactions.status = 'COMPLETED', 1, 0)) AS sales FROM analytics LEFT JOIN transactions ON analytics.id = transactions.analytics WHERE analytics.user_id = 52094 GROUP BY analytics.source ORDER BY frequency DESC LIMIT 10 The analytics table has 60M rows and the transactions table has 3M rows. When I run an EXPLAIN on this query, I get: +------+--------------+-----------------+--------+---