# Aurora Serverless

**URL:** <https://forum.serverless.com/t/aurora-serverless/5928>\
**Category:** Serverless Architectures\
**Tags:** aws\
**Created:** [September 25, 2018, 1:29am UTC](https://forum.serverless.com/t/aurora-serverless/5928 "2018-09-25T01:29:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![walshe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/walshe/32/1032_2.png) [@walshe](https://forum.serverless.com/u/walshe)\
**Post date:** [September 25, 2018, 1:29am UTC](https://forum.serverless.com/t/aurora-serverless/5928/1 "2018-09-25T01:29:53Z")

</div>

has anyone tried it yet ?

is it possible to completely have serverless.yml create a serverless aurora database and define tables etc…

and to also have option to create, drop-create, update the schema etc ? any good pointers to examples ?

---

<div class="post-metadata">

**Author:** ![nibynool](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/nibynool/32/2592_2.png) [@nibynool](https://forum.serverless.com/u/nibynool)\
**Post date:** [September 28, 2018, 2:42am UTC](https://forum.serverless.com/t/aurora-serverless/5928/2 "2018-09-28T02:42:29Z")

</div>

I’ve been playing around with some stuff to get this happening. At the moment I’ve managed to create and delete an aurora serverless instance. Checkout [https://github.com/nibynool/serverless-aurora](https://github.com/nibynool/serverless-aurora)

For migrations I’m trying to work with serverless-pg-migrations (available through NPM) which appears to allow migrations for any DB supported by sequelizejs

My biggest issue with Aurora Serverless is that it is inaccessible from outside AWS. With this in mind I’m trying to set-up some sort of on-demand bastion host to make sure my migrations work as expected, but it should be straight forward to manually create a bastion host if you want to verify your DB from outside AWS.

(sorry for the lack of links, as a new user I’m restricted from posting too many in a single post)

---

<div class="post-metadata">

**Author:** ![Wintereise](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/wintereise/32/2682_2.png) [@Wintereise](https://forum.serverless.com/u/Wintereise)\
**Post date:** [October 24, 2018, 4:15am UTC](https://forum.serverless.com/t/aurora-serverless/5928/3 "2018-10-24T04:15:20Z")

</div>

CFN now supports the `EngineMode` property, set it to `serverless` while creating a standard RDS/aurora instance to end up with aurora serverless.

Should look something like this.

```
ServerlessRDSCluster:
  DependsOn: ServerlessStorageSecurityGroup
  Type: AWS::RDS::DBCluster
  DeletionPolicy: ${self:custom.dbDeletionPolicy}
  Properties:
    Engine: aurora
    EngineMode: serverless
    Port: 3306
    DatabaseName: ${self:provider.environment.RDS_DB}
    MasterUsername: ${self:provider.environment.RDS_USER}
    MasterUserPassword: ${self:provider.environment.RDS_PWD}
    VpcSecurityGroupIds:
      - Ref: ServerlessStorageSecurityGroup
    DBSubnetGroupName:
      Ref: ServerlessRDSSubnetGroup
    Tags:
      - Key: Name
        Value: "${self:custom.nameSpace} Read Models"

```

More data here [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginemode](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-enginemode)
