aws-aurora-serverless

Syntax error when using Delimiters with Aurora Serverless MySQL 5.6

拈花ヽ惹草 提交于 2021-02-19 05:03:11
问题 I'm using Aurora Serverless MySQL 5.6 to create the following trigger which will update one table when data is inserted into another table but am receiving syntax errors, specifically around the Delimiter keyword. DELIMITER $$ CREATE TRIGGER Create_Media_Like_Trigger AFTER INSERT ON MediaLike FOR EACH ROW BEGIN IF NEW.likeType = 'LIKE' THEN UPDATE Media SET Media.numLikes = Media.numLikes + 1 WHERE Media.mediaId = NEW.mediaId; ELSEIF NEW.likeType = 'DISLIKE' THEN UPDATE Media SET Media

Aurora Serverless password rotation setup using CloudFormation (and Lambda rotation templates)

杀马特。学长 韩版系。学妹 提交于 2021-02-19 03:20:00
问题 AWS has Fully Configured and Ready-to-Use Rotation Support for some supported RDS engines, including Amazon Aurora (Serverless also?) I'm trying to setup the password rotation in my CloudFormation template using AWS::SecretsManager::RotationSchedule (note that this is not a fully functional template, only an illustration): DBCluster: Type: AWS::RDS::DBCluster Properties: Engine : aurora EngineMode : serverless EngineVersion : 5.6.10a Secret: Type: AWS::SecretsManager::Secret Properties:

Unable to serialise AWSDate from RDS in AppSync response mapping template

天大地大妈咪最大 提交于 2020-02-04 04:35:28
问题 I'm building an AppSync project using serverless Aurora as my db, and stumbled across this strange error: "Can't serialize value (/getUsers/created_at) : Unable to serialize `2019-09-28 07:36:13` as a valid DateTime Object." This happens when I get a User object which looks like this: type Users { id: String! name: String! description: String created_at: AWSDateTime updated_at: AWSDateTime logged_in: AWSDateTime } The error seems to be happening because $utils.rds.toJsonObject($ctx.result)[0]

Not able connect Amazon Aurora Serverless from SQL client

喜夏-厌秋 提交于 2019-12-23 12:42:49
问题 Today I've created Amazon Aurora Serverless cluster for PostGreSql in us-west-2, ensured the VPC and security groups in a way that, it should be publicly accessibly. But I'm not able to connect that cluster using the aurora endpoint from my Navicat/PgAdmin4 desktop client. Then I tried from the EC2 instance that are in same security group/vpc as like as Aurora Serverless, then it worked. From AWS froum, You can't give an Aurora Serverless DB cluster a public IP address. You can access an

Aurora Serverless on GA version permit connections from internet?

ε祈祈猫儿з 提交于 2019-12-02 03:52:49
问题 I know that Aurora serverless version, on the preview, has the following restrictions: There isn't enable for connection from internet. Only is possible connections from the same VPC in which is our Aurora cluster. Now, Aurora serverless is on general availability, so I am wondering if this restriction exists nowadays. Someone have had success exposing the aurora serverless cluster to internet? 回答1: Nope. According to their forums, that feature is still on their to-do list. Source:https:/

Creating an Aurora Serverless Cluster from cloudformation?

半世苍凉 提交于 2019-11-26 21:13:25
问题 From Aurora Serverless's document, there are 3 ways to create an Aurora serverless DB cluster: AWS management console, CLI, and RDS API. (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/aurora-serverless.create.html) Form my understanding, one would use EngineMode in the RDS API to create Aurora Serverless, but this property is not available in AWS::RDS::DBCluster yet (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html). Would it be possible