Is it possible to configure aurora from serverless.yml ?
At the moment, I am using the following for mySQL :
- Fn::GetAtt: RDSSecurityGroup.GroupId
In the end, what i want to achieve is to use the above config for dev and aurora for prod, so I’d also appreciate any tips to do that
Serverless doesn’t see Aurora any different than it sees MySQL. It’s just a different Engine in your CloudFormation configuration in the Resources section of serverless.yml.
See the Cloudformation AWS::RDS::DBInstance reference docs here.
Valid values for Engine are:
The name of the database engine to be used for this instance.
Not every database engine is available for every AWS Region.
aurora (for MySQL 5.6-compatible Aurora)
aurora-mysql (for MySQL 5.7-compatible Aurora)
This is not so simple because Aurora needs a dbcluster not a dbinstamce.
Since this post, the way I chose to go is to declare bthe backing services directly in CF and to reference that with CF: vars
Thanks anyway for your feedback, I appreciate
Here’s the AWS CloudFormation reference for creating a AWS:RDS:DBCluster
This too can be done in the Resources section of your serverless.yml
No it is not possible to see Aurora, it is different vesion in oracle RAC DBA clusters.