# Configuring aurora from serverless.yml

**URL:** <https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919>\
**Category:** Serverless Framework\
**Created:** [March 2, 2018, 9:30am UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919 "2018-03-02T09:30:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cblin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/cblin/32/1700_2.png) [@cblin](https://forum.serverless.com/u/cblin)\
**Post date:** [March 2, 2018, 9:30am UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919/1 "2018-03-02T09:30:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bfieber](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bfieber/32/653_2.png) [@bfieber](https://forum.serverless.com/u/bfieber)\
**Post date:** [March 2, 2018, 3:12pm UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919/2 "2018-03-02T15:12:44Z")

</div>

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.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html)

Valid values for Engine are:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![cblin](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/cblin/32/1700_2.png) [@cblin](https://forum.serverless.com/u/cblin)\
**Post date:** [March 4, 2018, 10:15pm UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919/3 "2018-03-04T22:15:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bfieber](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bfieber/32/653_2.png) [@bfieber](https://forum.serverless.com/u/bfieber)\
**Post date:** [March 5, 2018, 4:44pm UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919/4 "2018-03-05T16:44:16Z")

</div>

Here’s the AWS CloudFormation reference for creating a [AWS:RDS:DBCluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html)  
This too can be done in the Resources section of your serverless.yml

---

<div class="post-metadata">

**Author:** ![riyawilliams](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/riyawilliams/32/2252_2.png) [@riyawilliams](https://forum.serverless.com/u/riyawilliams)\
**Post date:** [July 30, 2018, 7:18am UTC](https://forum.serverless.com/t/configuring-aurora-from-serverless-yml/3919/5 "2018-07-30T07:18:41Z")

</div>

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](https://mindmajix.com/oracle-rac-training)).
