Configuring aurora from serverless.yml

Is it possible to configure aurora from serverless.yml ?

At the moment, I am using the following for mySQL :

RDSInstance:
      Type: AWS::RDS::DBInstance
      Properties:
        AllocatedStorage: 100
        AutoMinorVersionUpgrade: true
        AvailabilityZone: ${self:provider.region}a
        DBInstanceClass: db.t2.micro
        DBName: "testrdsfromlambda"
        DBSubnetGroupName:
          Ref: RDSSubnetGroup
        Engine: mysql
        EngineVersion: 5.7
        MasterUsername: "myuser"
        MasterUserPassword: "secret"
        PubliclyAccessible: false
        VPCSecurityGroups:
          - 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:

Engine
The name of the database engine to be used for this instance.
Not every database engine is available for every AWS Region.

Valid Values:
aurora (for MySQL 5.6-compatible Aurora)
aurora-mysql (for MySQL 5.7-compatible Aurora)
aurora-postgresql
mariadb
mysql
oracle-ee
oracle-se2
oracle-se1
oracle-se
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-web

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

Hai,
No it is not possible to see Aurora, it is different vesion in oracle RAC DBA clusters.
Thanks,
Riya (https://mindmajix.com/oracle-rac-training).